Bug 101953 - Fix DOMException message property
Summary: Fix DOMException message property
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL: http://dom.spec.whatwg.org/#error-nam...
Keywords:
Depends on:
Blocks: 101955
  Show dependency treegraph
 
Reported: 2012-11-12 11:15 PST by Erik Arvidsson
Modified: 2017-07-20 16:45 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Arvidsson 2012-11-12 11:15:04 PST
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
Comment 1 Erik Arvidsson 2012-11-12 11:15:37 PST
Related to bug 101606
Comment 2 Anne van Kesteren 2012-11-21 13:14:58 PST
Oh, I never envisioned the description to be used for this. Currently IDL defines the message field as user-agent defined.
Comment 3 Erik Arvidsson 2012-11-26 07:11:45 PST
(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"
Comment 4 Chris Dumez 2017-07-20 16:45:50 PDT
Looks OK nowadays.