This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 877 - parsetree generates ill-formed XML
Summary: parsetree generates ill-formed XML
Status: RESOLVED FIXED
Alias: None
Product: Validator
Classification: Unclassified
Component: check (show other bugs)
Version: 0.6.7
Hardware: Other other
: P2 normal
Target Milestone: 0.7.0
Assignee: Terje Bless
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-12 07:53 UTC by Bj
Modified: 2004-11-13 21:41 UTC (History)
0 users

See Also:


Attachments

Description Bj 2004-09-12 07:53:56 UTC
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.
Comment 1 Ville Skyttä 2004-11-13 21:41:43 UTC
Fixed in HEAD, rev 1.359.