<?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>25540</bug_id>
          
          <creation_ts>2014-05-03 04:43:58 +0000</creation_ts>
          <short_desc>Invalid use of [EnsureUTF16]</short_desc>
          <delta_ts>2014-05-26 23:53:34 +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>XHR</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</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>
          <dependson>24581</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Glenn Adams">glenn</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>cam</cc>
    
    <cc>jungkees</cc>
    
    <cc>mike</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>105016</commentid>
    <comment_count>0</comment_count>
    <who name="Glenn Adams">glenn</who>
    <bug_when>2014-05-03 04:43:58 +0000</bug_when>
    <thetext>In three places, the syntax

optional [EnsureUTF16] DOMString

is used; however, this syntax is not valid according to WebIDL2 Production 58 [1]. Changing these three cases to:

[EnsureUTF16] optional DOMString

fixes these problems.

[1] http://heycam.github.io/webidl/#proddef-Argument

In one place, the syntax

optional (... or [EnsureUTF16] DOMString or ...)?

is used. Unfortunately, the only way to make this valid according to WebIDL2 is to move the extended attribute before &quot;optional&quot;, which definitely makes this semantically awkward (if not ill formed). That is, one would have to write:

[EnsureUTF16] optional (... or DOMString or ...)?

which looks rather strange when &quot;...&quot; is not DOMString.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106322</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-05-19 08:51:33 +0000</bug_when>
    <thetext>https://github.com/whatwg/xhr/commit/fad6118b670569bef63afc8d5e1bb5a94154f431</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106424</commentid>
    <comment_count>2</comment_count>
    <who name="Glenn Adams">glenn</who>
    <bug_when>2014-05-20 06:14:46 +0000</bug_when>
    <thetext>Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106774</commentid>
    <comment_count>3</comment_count>
    <who name="Glenn Adams">glenn</who>
    <bug_when>2014-05-26 02:54:54 +0000</bug_when>
    <thetext>I see the change was made in the whatwg version, and not the downstream (w3c) version. Could you downstream this to W3C please?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106778</commentid>
    <comment_count>4</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-05-26 08:21:08 +0000</bug_when>
    <thetext>Please don&apos;t reopen my bugs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106789</commentid>
    <comment_count>5</comment_count>
    <who name="Jungkee Song">jungkees</who>
    <bug_when>2014-05-26 10:10:52 +0000</bug_when>
    <thetext>W3C version updated: https://dvcs.w3.org/hg/xhr/raw-file/tip/xhr-1/Overview.html

Thanks,</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106792</commentid>
    <comment_count>6</comment_count>
    <who name="Glenn Adams">glenn</who>
    <bug_when>2014-05-26 11:29:24 +0000</bug_when>
    <thetext>(In reply to Anne from comment #4)
&gt; Please don&apos;t reopen my bugs.

You are confused. I reported the bug, therefore it is MY bug. You are merely the assignee. In any case, I (and any other reporter of a bug) damn well have the right to reopen a bug if it isn&apos;t satisfactorily addressed.

I appreciate your addressing this bug in the WHATWG version, but the bug was reported against the W3C edition, so it isn&apos;t fixed until addressed in the latter.

Thanks to Jungkee for following through with an update.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106795</commentid>
    <comment_count>7</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-05-26 12:50:03 +0000</bug_when>
    <thetext>No it wasn&apos;t. The W3C version does not have bugs associated with it. Otherwise the bug would not have been assigned to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106813</commentid>
    <comment_count>8</comment_count>
    <who name="Glenn Adams">glenn</who>
    <bug_when>2014-05-26 23:53:34 +0000</bug_when>
    <thetext>(In reply to Anne from comment #7)
&gt; No it wasn&apos;t. The W3C version does not have bugs associated with it.
&gt; Otherwise the bug would not have been assigned to me.

Then please explain how the product code of WebAppsWG associated with this bug is associated with a WHATWG spec. Last time I checked the WebAppsWG was a W3C WG working on W3C specs (only).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>