WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
28853
"SYNTAX_ERR: DOM Exception 12" when parsing invalid XHTML is not descriptive enough.
https://bugs.webkit.org/show_bug.cgi?id=28853
Summary
"SYNTAX_ERR: DOM Exception 12" when parsing invalid XHTML is not descriptive ...
Alexander Romanovich
Reported
2009-08-31 13:29:29 PDT
If a NO_MODIFICATION_ALLOWED_ERR error is thrown, Safari's error console does not detail the actual syntax in question. This makes debugging difficult in complex scripts that modify the DOM. Firefox actually reports the syntax that was rejected. For example: Safari: Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7 Firebug: Error: not well-formed Source File: Line: 1, Column: 115 Source Code: <div class="test"> </div> I don't know if this should be considered part of
https://bugs.webkit.org/show_bug.cgi?id=15492
which has to do with the logging of these errors.
Attachments
Add attachment
proposed patch, testcase, etc.
Mike West
Comment 1
2012-09-28 02:16:20 PDT
Rolling 15492 into this. At the moment, this code generates an exception with the message "SYNTAX_ERR: DOM Exception 12". We should add detail there explain what the syntax error was.
Mike West
Comment 2
2012-09-28 02:17:00 PDT
***
Bug 15492
has been marked as a duplicate of this bug. ***
Mike West
Comment 3
2012-09-28 02:18:10 PDT
https://bug-15492-attachments.webkit.org/attachment.cgi?id=46096
is a test case.
Mike West
Comment 4
2013-02-07 11:00:43 PST
Unassigning myself; let's be realistic about what I'm actually working on. :/
Lucas Forschler
Comment 5
2019-02-06 09:03:26 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