[Webkit-unassigned] [Bug 31144] New: [Qt] The XML tokenizer reports a parse error twice if it occurs before the document element is found.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 4 15:14:22 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=31144

           Summary: [Qt] The XML tokenizer reports a parse error twice if
                    it occurs before the document element is found.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P3
         Component: XML
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: faw217 at gmail.com
                CC: zecke at selfish.org


Created an attachment (id=42528)
 --> (https://bugs.webkit.org/attachment.cgi?id=42528)
test case

Attached is a test case that demonstrates the problem.

The root of the problem seems to be r27045:
http://trac.webkit.org/changeset/27045.

I'm wondering why the logic in question was necessary? Is it expected that
XMLTokenizer should report a failure when parsing an empty document? Or was the
patch addressing some other issue?

Nevertheless, it doesn't work correctly when the tokenizer hits a parse error
before the root element is processed. Such an error would be handled in
::parse() and that logic in ::doEnd() would catch the same error and report it
for the second time.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list