<?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>29166</bug_id>
          
          <creation_ts>2015-10-01 13:38:38 +0000</creation_ts>
          <short_desc>Fragment serializing algorithm has wrong behaviour for passing node</short_desc>
          <delta_ts>2015-10-01 13:38:38 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>DOM Parsing and Serialization</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Arkadiusz Michalski (Spirit)">crimsteam</reporter>
          <assigned_to name="Travis Leithead [MSFT]">travil</assigned_to>
          <cc>mike</cc>
    
    <cc>www-dom</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>123416</commentid>
    <comment_count>0</comment_count>
    <who name="Arkadiusz Michalski (Spirit)">crimsteam</who>
    <bug_when>2015-10-01 13:38:38 +0000</bug_when>
    <thetext>This algo doesn&apos;t fit for getter innerHTML/outerHTML in XML case:
http://www.w3.org/TR/DOM-Parsing/#dfn-concept-fragment-serializing-algorithm

If I correct then we have:

- for innerHTML algo try serializing passed context object, but should operate only on its childs (what we see in HTML fragment serialization algorithm: &quot;This algorithm serializes the children of the node being serialized, not the node itself.&quot;)

http://www.w3.org/TR/DOM-Parsing/#widl-Element-innerHTML
&quot;On getting, return the result of invoking the fragment serializing algorithm on the context object providing true for the require well-formed flag (this might throw an exception instead of returning a string).&quot;

- for outerHTML you pass some &quot;fictional node&quot;, but what is this (has namespace, has owner document?) and how the algorithm should handle it? This term is not too general, even for HTML fragment serialization algorithm (which accepts only Element, Document, or DocumentFragment)?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>