<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>7834</bug_id>
          
          <creation_ts>2009-10-08 08:17:12 +0000</creation_ts>
          <short_desc>&quot;If a new element is inserted between the two nodes that define pointer&quot; - s/element/node/</short_desc>
          <delta_ts>2010-10-04 14:57:13 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>pre-LC1 HTML5 spec (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#loading-the-media-resource</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>NE</keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>LC</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>philipj</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>28120</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2009-10-08 08:17:12 +0000</bug_when>
    <thetext>Section: http://www.whatwg.org/specs/web-apps/current-work/#loading-the-media-resource

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

Posted from: 88.131.66.80</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28121</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2009-10-08 08:33:10 +0000</bug_when>
    <thetext>Actually... the spec seems bogus here.

Consider

&lt;video&gt;&lt;source&gt; &lt;source&gt;&lt;/video&gt;

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 &quot;As *elements* are inserted and removed into the media element, pointer must be updated as follows:&quot; and &quot;Other changes don&apos;t affect pointer.&quot;.

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 &quot;source&quot; element nodes (the last option will probably most closely match implementations).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28329</commentid>
    <comment_count>2</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2009-10-14 08:39:27 +0000</bug_when>
    <thetext>&quot;node&quot; is used to mean something other than a DOM node in the spec, as it says &quot;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.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28538</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2009-10-20 05:20:57 +0000</bug_when>
    <thetext>Changed to refer to nodes, not elements.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28539</commentid>
    <comment_count>4</comment_count>
    <who name="">contributor</who>
    <bug_when>2009-10-20 05:21:26 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r4194.
Check-in comment: Change &apos;pointer&apos; (part of the resource selection algorithm) to operate only on nodes, not elements.
http://html5.org/tools/web-apps-tracker?from=4193&amp;to=4194
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>