This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 20651 - WebVTT: "attribute (long or AutoKeyword) line" is not valid WebIDL, since the spec says we can't have unions of primitive types
Summary: WebVTT: "attribute (long or AutoKeyword) line" is not valid WebIDL, since the...
Status: RESOLVED WORKSFORME
Alias: None
Product: TextTracks CG
Classification: Unclassified
Component: WebVTT (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: Silvia Pfeiffer
QA Contact: This bug has no owner yet - up for the taking
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard: v1
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-11 19:45 UTC by contributor
Modified: 2014-01-27 16:37 UTC (History)
7 users (show)

See Also:


Attachments

Description contributor 2013-01-11 19:45:49 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/
Multipage: http://www.whatwg.org/C#text-track-api
Complete: http://www.whatwg.org/c#text-track-api

Comment:
`attribute (long or AutoKeyword) line;' is not valid WebIDL, since the spec
says we can't have unions of primitive types.

Posted from: 206.174.190.116
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/20100101 Firefox/17.0
Comment 1 Ms2ger 2013-12-09 14:32:13 UTC
This might actually have become valid per IDL in the 11 months this bug was ignored.
Comment 2 Philip Jägenstedt 2014-01-27 10:36:58 UTC
http://heycam.github.io/webidl/#idl-union does not seem to mention this.

However, http://heycam.github.io/webidl/#prod-UnionType is mysterious to me, I have no idea which production would match AutoKeyword there, so some help would be appreciated.

Ms2ger, please close this bug if you can't find a clear "it is invalid" in WebIDL.
Comment 3 Ms2ger 2014-01-27 11:50:28 UTC
Looks like numeric types and enumerations are distinguishable now: <http://heycam.github.io/webidl/#dfn-distinguishable>. Still not happy about the way this bug was handled.
Comment 4 Silvia Pfeiffer 2014-01-27 12:08:41 UTC
With Philip on board, we should get a chance to catch up now. :-)