<?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>877</bug_id>
          
          <creation_ts>2004-09-12 07:53:56 +0000</creation_ts>
          <short_desc>parsetree generates ill-formed XML</short_desc>
          <delta_ts>2004-11-13 21:41:43 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Validator</product>
          <component>check</component>
          <version>0.6.7</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</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>0.7.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Bj">bjoern</reporter>
          <assigned_to name="Terje Bless">link</assigned_to>
          
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2335</commentid>
    <comment_count>0</comment_count>
    <who name="Bj">bjoern</who>
    <bug_when>2004-09-12 07:53:56 +0000</bug_when>
    <thetext>parsetree() has

  $prevdata = &amp;ent($prevdata);
  $prevdata =~ s/\s+/ /go;
  $tree .= wrap(&apos; &apos; x $indent, &apos; &apos; x $indent, $prevdata) . &quot;\n&quot;;

This can&apos;t work, wrap will split inside character references as generated by ent
() which then may be split into pieces ala

  ...&amp;
  #34;...

As a result, the output document is illformed XML.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2612</commentid>
    <comment_count>1</comment_count>
    <who name="Ville Skyttä">ville.skytta</who>
    <bug_when>2004-11-13 21:41:43 +0000</bug_when>
    <thetext>Fixed in HEAD, rev 1.359.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>