<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>17507</bug_id>
          
          <creation_ts>2012-06-16 10:44:21 +0000</creation_ts>
          <short_desc>Wrong IDL in definition of HitRegionOptions</short_desc>
          <delta_ts>2012-08-24 00:45:30 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#2dcontext</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>wolfgangkeller</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>69129</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-06-16 10:44:21 +0000</bug_when>
    <thetext>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 = &apos;&apos;;

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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69130</commentid>
    <comment_count>1</comment_count>
    <who name="Wolfgang Keller">wolfgangkeller</who>
    <bug_when>2012-06-16 10:52:55 +0000</bug_when>
    <thetext>In the IDL of HitRegionOptions we have

dictionary HitRegionOptions {
  // [snip]
  DOMString id = &apos;&apos;;
  // [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

&apos;&apos; 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 
 | &quot;null&quot;

Thus &apos;&apos; have to be the terminal named &quot;string&quot;

This is defined as (http://dev.w3.org/2006/webapi/WebIDL/#prod-string)

string	=	&quot;[^&quot;]*&quot;

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 = &quot;&quot;; // Note the double quotes
  // [snap]
};

or allow in the definition of WebIDL to let strings enclosed in single quotes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70933</commentid>
    <comment_count>2</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-07-18 17:46:38 +0000</bug_when>
    <thetext>This bug was cloned to create bug 18233 as part of operation convergence.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72680</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-08-24 00:45:30 +0000</bug_when>
    <thetext>This got fixed as part of my fixing various IDL errors recently.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>