<?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>19837</bug_id>
          
          <creation_ts>2012-11-03 01:35:14 +0000</creation_ts>
          <short_desc>DomNode::normalize handling of text nodes</short_desc>
          <delta_ts>2012-11-21 18:55:07 +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</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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>svitlant</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>mike</cc>
    
    <cc>Ms2ger</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>77785</commentid>
    <comment_count>0</comment_count>
    <who name="">svitlant</who>
    <bug_when>2012-11-03 01:35:14 +0000</bug_when>
    <thetext>Hello,

In the previous version of the specification (http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-normalize) DomNode::normalize is explicitly said to remove empty text nodes. There is no mention of how the empty nodes need to be handled in the new specification (http://dom.spec.whatwg.org/#dom-node-normalize).

In particular, I would really appreciate for a note on how the following situation should be handled: an empty text node (text1) followed by a non-empty text node (text2). According to the new specification, the content will be concatenated in text1. However, this does not correspond to the behavior of major browsers: major browsers detach text1 and leave text2 unchanged.

Thanks,
Svitlana</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77787</commentid>
    <comment_count>1</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2012-11-03 09:01:29 +0000</bug_when>
    <thetext>Thanks for the bug report, Svitlana. I uploaded a test: &lt;http://dvcs.w3.org/hg/webapps/rev/f5262db28508&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78124</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-11-09 15:47:19 +0000</bug_when>
    <thetext>https://github.com/whatwg/dom/commit/a6b9ed1c84dfc87de58b55b06cb3f40244d682ca
http://dom.spec.whatwg.org/#dom-node-normalize

svitlant, is your name in the Acknowledgments section already? (I&apos;m not aware of your name or have forgotten.) If not, could you please give me either your name or preferred nick for that section?

And thanks for this report, much appreciated!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78128</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-11-09 16:14:31 +0000</bug_when>
    <thetext>https://github.com/whatwg/dom/commit/adf9c2553d1fb2034a29c658a93ba9bc6c8bf52f</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78581</commentid>
    <comment_count>4</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-11-21 18:55:07 +0000</bug_when>
    <thetext>Closing this as it was fixed. svitlant, your desired name for the acknowledgments would still be appreciated!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>