W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2012

Re: [selectors-api] RfC: LCWD of Selectors API Level 1; deadline July 19

From: Kang-Hao (Kenny) Lu <kanghaol@oupeng.com>
Date: Tue, 07 Aug 2012 10:13:31 +0800
Message-ID: <502079CB.2020601@oupeng.com>
To: WebApps Working Group <public-webapps@w3.org>
CC: Lachlan Hunt <lachlan.hunt@lachy.id.au>, "Tab Atkins Jr." <jackalmage@gmail.com>
(12/08/06 19:25), Lachlan Hunt wrote:
> On 2012-08-06 13:08, Kang-Hao (Kenny) Lu wrote:
> I'd rather find a way to address the issue.  I've just been a bit busy
> with other tasks for the last 2 weeks to look into this.
> I'd like feedback from implementers about how best to address the issue.
>  The options I can think of:
> 1. Disallow all comments within the selector for this API. Throw
> SyntaxError when they are used.
> 2. Allow comments, but define that unclosed comments should throw a
> SyntaxError.
> 3. Allow comments, define that unclosed comments are silently ignored.

Both 1. and 2. would take some extra code in Gecko, in particular 1. I'd
note that this is not just about comments. It's about EOF fixing. See
[1] for other testcases.

[1] http://lists.w3.org/Archives/Public/public-webapps/2012JanMar/0524

(12/08/07 0:20), Tab Atkins Jr. wrote:
> Officially, 2.1 defines Kenny's example of "html /*" as tokenizing
> into IDENT WS DELIM DELIM, which is then an invalid selector since
> nothing recognizes those two delims as part of Selector's syntax.


> This is compatible with Syntax's treatment, where it's recognized as a
> comment, but triggers a parse error.

COMMENT is a bit special here and I think you might want to comment on
other cases in [1].

Web Specialist, Oupeng Browser, Beijing
Try Oupeng: http://www.oupeng.com/
Received on Tuesday, 7 August 2012 02:14:00 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:44 UTC