- From: <bugzilla@jessica.w3.org>
- Date: Thu, 15 Aug 2013 05:08:37 +0000
- To: public-texttracks@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=22968
Bug ID: 22968
Summary: VTTCue::vertical 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 vertical attribute uses an enum type, DirectionSetting, 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:38 UTC