[Bug 25540] New: Invalid use of [EnsureUTF16]

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

            Bug ID: 25540
           Summary: Invalid use of [EnsureUTF16]
           Product: WebAppsWG
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XHR
          Assignee: annevk@annevk.nl
          Reporter: glenn@skynav.com
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, public-webapps@w3.org

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 "optional", 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 "..." is not DOMString.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Saturday, 3 May 2014 04:44:00 UTC