<?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>7855</bug_id>
          
          <creation_ts>2009-10-09 10:39:51 +0000</creation_ts>
          <short_desc>Define fragment parsing when the context is not an HTML, SVG or MathML node</short_desc>
          <delta_ts>2010-10-04 14:31:04 +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>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>NE</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Henri Sivonen">hsivonen</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</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>28156</commentid>
    <comment_count>0</comment_count>
    <who name="Henri Sivonen">hsivonen</who>
    <bug_when>2009-10-09 10:39:51 +0000</bug_when>
    <thetext>createContextualFragment() method (decentralized extension to DOM Range) allows the invocation of the fragment parsing algorithm with contexts that aren&apos;t possible with innerHTML.

Please clarify (or explicitly delegate defaulting to other applicable specifications) cases where the context node is not an HTML, SVG or MathML element node.

I suggest the following:
 1) Let /node/ be the context node.
 2) If /node/ is an HTML, SVG or MathML element, use /node/ as the actual context node and terminate these steps.
 3) If /node/ is null or an element, behave as if the actual context node were a body element node in the http://www.w3.org/1999/xhtml namespace and terminate these steps.
 4) Let /node/ be the parent of /node/.
 5) Go to step 1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28157</commentid>
    <comment_count>1</comment_count>
    <who name="Henri Sivonen">hsivonen</who>
    <bug_when>2009-10-09 10:41:45 +0000</bug_when>
    <thetext>(I believe the above is what I have implemented for Gecko when the HTML5 parser is enabled.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28574</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2009-10-20 11:17:49 +0000</bug_when>
    <thetext>I don&apos;t understand. The fragment parsing algorithm takes an Element as its context argument; how can it be called with anything else? That&apos;s like saying that it can be called with a number instead of a string as its input data, or that it can be called expecting it to return a bitmap instead of a list of nodes.

What would the explicit delegating note be? &quot;If other specifications use this algorithm, they have to do it in a way that is not blatantly incompatible with this one&quot;? That seems... pointless.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>