W3C home > Mailing lists > Public > www-validator-cvs@w3.org > September 2004

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

From: <bugzilla@wiggum.w3.org>
Date: Sun, 12 Sep 2004 07:53:56 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1C6PBM-0003MM-HO@wiggum.w3.org>


           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


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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:02:07 UTC