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 7834 - "If a new element is inserted between the two nodes that define pointer" - s/element/node/
Summary: "If a new element is inserted between the two nodes that define pointer" - s/...
Status: CLOSED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: LC
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords: NE
Depends on:
Blocks:
 
Reported: 2009-10-08 08:17 UTC by contributor
Modified: 2010-10-04 14:57 UTC (History)
6 users (show)

See Also:


Attachments

Description contributor 2009-10-08 08:17:12 UTC
Section: http://www.whatwg.org/specs/web-apps/current-work/#loading-the-media-resource

Comment:
"If a new element is inserted between the two nodes that define pointer" - s/element/node/

Posted from: 88.131.66.80
Comment 1 Simon Pieters 2009-10-08 08:33:10 UTC
Actually... the spec seems bogus here.

Consider

<video><source> <source></video>

Here, pointer is initially between the first source and the text node. Now consider a script that removes the text node. Removing a text node does not update pointer, because a text node is not an element; the spec says "As *elements* are inserted and removed into the media element, pointer must be updated as follows:" and "Other changes don't affect pointer.".

The spec should be consistent and say to look at all types of nodes, or pointer should be defined by just element nodes, or pointer should be defined by just "source" element nodes (the last option will probably most closely match implementations).
Comment 2 Philip Jägenstedt 2009-10-14 08:39:27 UTC
"node" is used to mean something other than a DOM node in the spec, as it says "treating the start of the list (before the first child in the list, if any) and end of the list (after the last child in the list, if any) as nodes in their own right."
Comment 3 Ian 'Hixie' Hickson 2009-10-20 05:20:57 UTC
Changed to refer to nodes, not elements.
Comment 4 contributor 2009-10-20 05:21:26 UTC
Checked in as WHATWG revision r4194.
Check-in comment: Change 'pointer' (part of the resource selection algorithm) to operate only on nodes, not elements.
http://html5.org/tools/web-apps-tracker?from=4193&to=4194