[Bug 24959] "Exposed=Window,Worker" will be parsed to 2 extended attributes


Boris Zbarsky <bzbarsky@mit.edu> changed:

           What    |Removed                     |Added
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #17 from Boris Zbarsky <bzbarsky@mit.edu> ---
Though, the grammar rules in the spec are no longer one-token lookahead.  This
is what the spec has, basically:

ExtendedAttributeIdent    →    identifier "=" identifier
ExtendedAttributeIdentList    →    identifier "="
IdentOrParenthesizedIdentifierList    →    identifier
 | "(" IdentifierList ")"

So [Foo=Bar] it's ambiguous: is that an ExtendedAttributeIdent or an
ExtendedAttributeIdentList without the parens?

It's not clear to me why we can't just allow the Exposed extended attribute
value to match either ExtendedAttributeIdent or ExtendedAttributeIdentList and
then require the latter to be parenthesized.

You are receiving this mail because:
You are on the CC list for the bug.

Received on Friday, 25 July 2014 17:46:38 UTC