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 22154 - [WebVTT] DOM Node construction rules somewhat ambiguous
Summary: [WebVTT] DOM Node construction rules somewhat ambiguous
Status: RESOLVED FIXED
Alias: None
Product: TextTracks CG
Classification: Unclassified
Component: WebVTT (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Silvia Pfeiffer
QA Contact: This bug has no owner yet - up for the taking
URL:
Whiteboard: v1
Keywords:
: 28469 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-05-24 01:32 UTC by Caitlin Potter (:caitp)
Modified: 2016-10-11 17:53 UTC (History)
6 users (show)

See Also:


Attachments

Description Caitlin Potter (:caitp) 2013-05-24 01:32:00 UTC
In a discussion with David Baron, we are having trouble figuring out exactly what sort of interface our DOM nodes created from WebVTT markup are supposed to implement -- In short, it's not clear what sort of elements we are supposed to be creating in section 4.4 -- HTMLElement with local name "b" or HTMLBoldElement (for example").

Some clarification of this would be helpful.
Comment 1 Simon Pieters 2013-05-24 10:08:25 UTC
HTMLBoldElement doesn't exist. All the elements listed are defined to use HTMLElement in the HTML spec. So the WebVTT spec is correct.
Comment 2 Caitlin Potter (:caitp) 2013-05-24 10:14:14 UTC
I'm sure the spec may well be "correct", what we're saying is that it's not necessarily "clear", this could be improved upon.
Comment 3 Silvia Pfeiffer 2013-05-24 11:26:36 UTC
Section 4.4 is very clear on this:
http://dev.w3.org/html5/webvtt/#webvtt-cue-text-dom-construction-rules

It talks about HTMLElement and lists the localNames of the nodes.

I don't know what's unclear about that.
Comment 4 Caitlin Potter (:caitp) 2013-05-24 13:49:34 UTC
If it were clear, there wouldn't be confusion -- but there is, and this has been asked about by people this week during discussions about the track element / WebVTT. All we're hoping for is some clearer wording. The local-name vs node-type confusion in particular seems to have struck certain people as ambiguous.
Comment 5 Simon Pieters 2013-05-27 11:03:34 UTC
(In reply to comment #1)
> HTMLBoldElement doesn't exist. All the elements listed are defined to use
> HTMLElement in the HTML spec. So the WebVTT spec is correct.

Oops, turns out I was wrong. <span> is HTMLSpanElement. The rest use HTMLElement.

Maybe the spec should say
[[
An HTML span element.
]]
with "span" being a link to http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-semantics.html#the-span-element

instead of the current
[[
HTMLElement element node with localName "span".
]]
Comment 6 Simon Pieters 2015-10-24 13:58:16 UTC
https://github.com/w3c/webvtt/pull/223
Comment 7 Simon Pieters 2016-02-19 21:22:11 UTC
*** Bug 28469 has been marked as a duplicate of this bug. ***