Changeset 134882 in webkit


Ignore:
Timestamp:
Nov 15, 2012 7:51:09 PM (11 years ago)
Author:
arv@chromium.org
Message:

Update DOMException name: ValidationError
https://bugs.webkit.org/show_bug.cgi?id=102416

Reviewed by Kentaro Hara.

Patch 16 of 25 to update DOMException name to match the spec and Firefox.

VALIDATION_ERR is historical and not used in any spec or our code.

  • dom/DOMCoreException.cpp:
  • dom/ExceptionCode.h:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r134881 r134882  
     12012-11-15  Erik Arvidsson  <arv@chromium.org>
     2
     3        Update DOMException name: ValidationError
     4        https://bugs.webkit.org/show_bug.cgi?id=102416
     5
     6        Reviewed by Kentaro Hara.
     7
     8        Patch 16 of 25 to update DOMException name to match the spec and Firefox.
     9
     10        VALIDATION_ERR is historical and not used in any spec or our code.
     11
     12        * dom/DOMCoreException.cpp:
     13        * dom/ExceptionCode.h:
     14
    1152012-11-15  Kentaro Hara  <haraken@chromium.org>
    216
  • trunk/Source/WebCore/dom/DOMCoreException.cpp

    r134879 r134882  
    5151    { "NamespaceError", "An attempt was made to create or change an object in a way which is incorrect with regard to namespaces." },
    5252    { "INVALID_ACCESS_ERR", "A parameter or an operation was not supported by the underlying object." },
    53     { "VALIDATION_ERR", "A call to a method such as insertBefore or removeChild would make the Node invalid with respect to \"partial validity\", this exception would be raised and the operation would not be done." },
     53    { "ValidationError", "A call to a method such as insertBefore or removeChild would make the Node invalid with respect to \"partial validity\", this exception would be raised and the operation would not be done." },
    5454    { "TYPE_MISMATCH_ERR", "The type of an object was incompatible with the expected type of the parameter associated to the object." },
    5555    { "SECURITY_ERR", "An attempt was made to break through the security policy of the user agent." },
  • trunk/Source/WebCore/dom/ExceptionCode.h

    r134840 r134882  
    5454
    5555        // Introduced in DOM Level 3:
    56         VALIDATION_ERR = 16,
     56        VALIDATION_ERR = 16, // Historical
    5757        TYPE_MISMATCH_ERR = 17,
    5858
Note: See TracChangeset for help on using the changeset viewer.