<?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>18424</bug_id>
          
          <creation_ts>2012-07-27 12:12:56 +0000</creation_ts>
          <short_desc>Cannot parse static operation with ReturnType (WebIDL editors draft 10 July 2012)</short_desc>
          <delta_ts>2012-12-10 05:33:04 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>WebIDL</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 3.1</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Takashi Sakamoto">tasak</reporter>
          <assigned_to name="Cameron McCormack">cam</assigned_to>
          <cc>mike</cc>
    
    <cc>public-script-coord</cc>
    
    <cc>robin</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>71604</commentid>
    <comment_count>0</comment_count>
    <who name="Takashi Sakamoto">tasak</who>
    <bug_when>2012-07-27 12:12:56 +0000</bug_when>
    <thetext>According to the grammar: http://dev.w3.org/2006/webapi/WebIDL/#idl-grammar, we cannot use static operations which have return types. 

 I think, 

[38]	AttributeOrOperationRest	→	AttributeRest 
                                              | OperationRest 
                                              | &quot;;&quot;

should be

[38]	AttributeOrOperationRest	→	AttributeRest 
                                              | ReturnType OperationRest 
                                              | &quot;;&quot;

For example, suppose that we have &quot;static void classMethod();&quot; declared as &quot;interface member&quot;.
According to the grammar: http://dev.w3.org/2006/webapi/WebIDL/#idl-grammar,

[10]	InterfaceMember	→	Const 
                                              | AttributeOrOperationOrIterator

the text matches the rule: InterfaceMember -&gt; AttributeOrOperationOrIterator.

[30]	AttributeOrOperationOrIterator	→	Serializer 
                                              | Qualifier AttributeOrOperationRest 
                                              | Attribute 
                                              | OperationOrIterator

the text matches the rule: AttributeOrOperationOrIterator -&gt; Qualifier AttributeOrOperationRest.

[37]	Qualifier	→	&quot;static&quot; 
                                             | &quot;stringifier&quot;

the text matches the rule: Qualifier -&gt; &quot;static&quot;.

[38]	AttributeOrOperationRest	→	AttributeRest 
                                              | OperationRest 
                                              | &quot;;&quot;

the text matches the rule: AttributeOrOperationRest -&gt; OperationRest.

[51]	OperationRest	→	OptionalIdentifier &quot;(&quot; ArgumentList &quot;)&quot; &quot;;&quot;

The OptionalIdentifier matches &quot;void&quot;, not &quot;classMethod&quot;. So as &quot;(&quot; doesn&apos;t match &quot;classMethod&quot;, &quot;static classMethod();&quot; is rejected.

Best regards,
Takashi Sakamoto</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77490</commentid>
    <comment_count>1</comment_count>
    <who name="Peter Van der Beken">peterv</who>
    <bug_when>2012-10-31 08:49:14 +0000</bug_when>
    <thetext>*** Bug 19777 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79801</commentid>
    <comment_count>2</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2012-12-10 05:33:04 +0000</bug_when>
    <thetext>Thanks, fixed now.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>