WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 13057
18210
DOMParser reports parsing errors differently than
https://bugs.webkit.org/show_bug.cgi?id=18210
Summary
DOMParser reports parsing errors differently than
Nicholas C. Zakas
Reported
2008-03-29 12:56:39 PDT
The DOMParser object doesn't report parsing errors. The following will cause a parser error in both Firefox and Opera: var xmldom = (new DOMParser()).parseFromString("<xml>", "text/xml"); The returned value is a document whose document element is <parseerror/> in Firefox and Opera; in WebKit it is <xml/> and no error occurs.
Attachments
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2008-04-01 00:29:58 PDT
I cannot reproduce this. Try entering the following into the address bar: javascript:alert((new XMLSerializer).serializeToString((new DOMParser()).parseFromString("<xml>", "text/xml")))
Nicholas C. Zakas
Comment 2
2008-04-06 12:39:14 PDT
Perhaps my original subject was incorrect. In Opera and FF, the <parsererror> element is the document element. In WebKit, it's inserted at the point of the parser error. This seems like a bug that should be fixed for interoperability.
Alexey Proskuryakov
Comment 3
2008-04-06 23:56:37 PDT
*** This bug has been marked as a duplicate of
13057
***
Lucas Forschler
Comment 4
2019-02-06 09:03:43 PST
Mass moving XML DOM bugs to the "DOM" Component.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug