This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html Multipage: http://www.whatwg.org/C#2dcontext Complete: http://www.whatwg.org/c#2dcontext Comment: In dictionary HitRegionOptions { Path? path = null; DOMString id = ''; Posted from: 84.182.211.110 User agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.34 Safari/536.11
In the IDL of HitRegionOptions we have dictionary HitRegionOptions { // [snip] DOMString id = ''; // [snap] }; If we look at the current version of the WebIDL draft the definition of the nonterminal DefaultValue (which is used for the part after the equal sign) we see (http://dev.w3.org/2006/webapi/WebIDL/#proddef-DefaultValue): [16] DefaultValue → ConstValue | string '' is surely not a ConstValue, since the definition of this nonterminal is (http://www.w3.org/TR/WebIDL/#prod-ConstValue): [27] ConstValue → BooleanLiteral | FloatLiteral | integer | "null" Thus '' have to be the terminal named "string" This is defined as (http://dev.w3.org/2006/webapi/WebIDL/#prod-string) string = "[^"]*" In other words: it has to begin with a double quote - not a single quote. To solve this bug we either should change the IDL of HitRegionOptions to dictionary HitRegionOptions { // [snip] DOMString id = ""; // Note the double quotes // [snap] }; or allow in the definition of WebIDL to let strings enclosed in single quotes.
This bug was cloned to create bug 18233 as part of operation convergence.
This got fixed as part of my fixing various IDL errors recently.