[Bug 877] New: parsetree generates ill-formed XML

http://www.w3.org/Bugs/Public/show_bug.cgi?id=877

           Summary: parsetree generates ill-formed XML
           Product: Validator
           Version: 0.6.7
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: check
        AssignedTo: link@pobox.com
        ReportedBy: bjoern@hoehrmann.de
         QAContact: www-validator-cvs@w3.org


parsetree() has

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

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

  ...&
  #34;...

As a result, the output document is illformed XML.



------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.

Received on Sunday, 12 September 2004 07:53:57 UTC