[Bug 22967] New: VTTCue::align setter's use of enum prevents raising SyntaxError

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

            Bug ID: 22967
           Summary: VTTCue::align setter's use of enum prevents raising
                    SyntaxError
    Classification: Unclassified
           Product: TextTracks CG
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebVTT
          Assignee: silviapfeiffer1@gmail.com
          Reporter: glenn@skynav.com
        QA Contact: dave.null@w3.org
                CC: mike@w3.org, public-texttracks@w3.org

Now that the align attribute uses an enum type, AlignSetting, according to
WebIDL [1] Section 3.5 Enumerations:

"In the ECMAScript binding [of an Enumeration], assignment of an invalid string
value to an attribute is ignored, while passing such a value as an operation
argument results in an exception being thrown."

Consequently, the spec describing align needs to change

"If none of the values match, then the user agent must instead throw a
SyntaxError exception."

to

"If none of the values match, then the user agent must ignore the attempt to
set the attribute."

Note that I've asked the editor of WebIDL if perhaps the "strict" mode in ES
should cause an exception rather than ignore the attempt, but have received no
response yet.

[1] http://dev.w3.org/2006/webapi/WebIDL/

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

Received on Thursday, 15 August 2013 05:08:19 UTC