Bug 101953
Summary: | Fix DOMException message property | ||
---|---|---|---|
Product: | WebKit | Reporter: | Erik Arvidsson <arv> |
Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | annevk, cdumez, Ms2ger, syoichi |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
URL: | http://dom.spec.whatwg.org/#error-names-table | ||
Bug Depends on: | |||
Bug Blocks: | 101955 |
Erik Arvidsson
Right now the message is "HIERARCHY_REQUEST_ERR: DOM Exception 3".
The message should be the "Description" from http://dom.spec.whatwg.org/#error-names-table
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Erik Arvidsson
Related to bug 101606
Anne van Kesteren
Oh, I never envisioned the description to be used for this. Currently IDL defines the message field as user-agent defined.
Erik Arvidsson
(In reply to comment #2)
> Oh, I never envisioned the description to be used for this. Currently IDL defines the message field as user-agent defined.
OK.
I still think the message property of the exception object in WebKit should be:
"The operation would yield an incorrect node tree"
instead of
"HierarchyRequestError: DOM Exception 3"
With bug 101955 and my proposed change the web inspector will print:
"HierarchyRequestError: The operation would yield an incorrect node tree"
instead of:
"Error: HierarchyRequestError: DOM Exception 3"
Chris Dumez
Looks OK nowadays.