Bug 28853
Summary: | "SYNTAX_ERR: DOM Exception 12" when parsing invalid XHTML is not descriptive enough. | ||
---|---|---|---|
Product: | WebKit | Reporter: | Alexander Romanovich <alex> |
Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | cdumez, eric, mkwst |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | PC | ||
OS: | OS X 10.5 | ||
Bug Depends on: | |||
Bug Blocks: | 97693, 15492 |
Alexander Romanovich
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
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
*** Bug 15492 has been marked as a duplicate of this bug. ***
Mike West
https://bug-15492-attachments.webkit.org/attachment.cgi?id=46096 is a test case.
Mike West
Unassigning myself; let's be realistic about what I'm actually working on. :/
Lucas Forschler
Mass moving XML DOM bugs to the "DOM" Component.