[Bug 17508] Invalid IDL of SelectionMode

https://www.w3.org/Bugs/Public/show_bug.cgi?id=17508

Wolfgang Keller <wolfgangkeller@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
                 CC|                            |wolfgangkeller@gmail.com

--- Comment #1 from Wolfgang Keller <wolfgangkeller@gmail.com> 2012-06-16 11:16:23 UTC ---
If we look at http://www.whatwg.org/specs/web-apps/current-work/#selectionmode
we'll see the following IDL of SelectionMode

enum SelectionMode {
  // ...
  'preserve',
};

This is not allowed according to WebIDL http://dev.w3.org/2006/webapi/WebIDL/

Let's look why:

The nonterminal EnumValueList (what is between the { }) is defined (using
EnumValues) as

[21]    EnumValueList    →    string EnumValues
[22]    EnumValues    →    "," string EnumValues 
 | ε

Thus if there is a comma a string has to follow. This string 'preserve' (which
is also an invalid string according to WebIDL since string terminals have to be
enclosed in double quotes - see bug
https://www.w3.org/Bugs/Public/show_bug.cgi?id=17507 - but this shall not mind
here) is followed by a comma - but not by an additional string.

Thus we either have to change the WebIDL rules such that there is no need for a
string after a comma or fix this IDL fragment by removing the , after
'preserve'.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Saturday, 16 June 2012 11:16:26 UTC