<?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>4171</bug_id>
          
          <creation_ts>2007-01-09 18:32:20 +0000</creation_ts>
          <short_desc>[UPD] Merging adjacent text nodes and node identity</short_desc>
          <delta_ts>2007-02-07 09:50:24 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>Update Facility</component>
          <version>Working drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</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 name="John Snelson">john.snelson</reporter>
          <assigned_to name="Andrew Eisenberg">andrew.eisenberg</assigned_to>
          <cc>dengovatov</cc>
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>13388</commentid>
    <comment_count>0</comment_count>
    <who name="John Snelson">john.snelson</who>
    <bug_when>2007-01-09 18:32:20 +0000</bug_when>
    <thetext>What happens to node identity when adjacent text nodes are merged? What about variable references that point to one of the original text nodes - do they need to be identified and updated?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13427</commentid>
    <comment_count>1</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2007-01-10 22:33:07 +0000</bug_when>
    <thetext>We&apos;ve tackled this once is bug 2983. In section 3.2.2 upd:applyUpdates, Semantics, bullet 3, we now say,

&quot;If, as a net result of the above steps, the children property of some node contains adjacent text nodes, these adjacent text nodes are merged into a single text node. The string-value of the resulting text node is the concatenated string-values of the adjacent text nodes, with no intervening space added. The nodeid of the resulting text node is implementation-dependent.&quot;

In my opinion, this is a somewhat loose statement. One implementation might create a new text node, with new identity, as a result of the merge, and the disconnect the original text nodes from their parent node. Another implementation might add the content of the second text node to the first text node, and then disconnect the second text node from its parent node.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13915</commentid>
    <comment_count>2</comment_count>
    <who name="Daniel Engovatov">dengovatov</who>
    <bug_when>2007-02-07 01:19:35 +0000</bug_when>
    <thetext>We have reviewed this issue: comment #1 answers the question stated in the bug description.  No further changes are necessary.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>