Changeset 189825 in webkit


Ignore:
Timestamp:
Sep 15, 2015, 2:39:02 PM (10 years ago)
Author:
Chris Dumez
Message:

Element.getAttributeNS() should return null if the attribute does not exist
https://bugs.webkit.org/show_bug.cgi?id=149180
<rdar://problem/22561011>

Reviewed by Ryosuke Niwa.

LayoutTests/imported/w3c:

Rebaseline several W3C DOM tests now that more checks are passing.

  • web-platform-tests/dom/nodes/attributes-expected.txt:
  • web-platform-tests/dom/nodes/case-expected.txt:

Source/WebCore:

Element.getAttributeNS() should return null if the attribute does not
exist, similarly to what Element.getAttribute() does:

Firefox and Chrome match the specification. However, WebKit was returning
an empty string for getAttributeNS() and null for getAttribute(). This
patch aligns WebKit's behavior with the specification and other browsers.

No new tests, already covered by existing tests.

  • dom/Element.idl:

LayoutTests:

Rebaseline / update existing tests now that our behavior has changed.

  • fast/dom/Element/attribute-uppercase-expected.txt:
  • fast/dom/Element/mozilla-dom-base-tests/test_bug1075702-expected.txt:
  • fast/dom/Element/mozilla-dom-base-tests/test_bug1075702.html:
  • fast/dom/Element/setAttributeNode-overriding-lowercase-values-1-expected.txt:
  • fast/dom/Element/setAttributeNode-overriding-lowercase-values-2-expected.txt:
Location:
trunk
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r189823 r189825  
     12015-09-15  Chris Dumez  <cdumez@apple.com>
     2
     3        Element.getAttributeNS() should return null if the attribute does not exist
     4        https://bugs.webkit.org/show_bug.cgi?id=149180
     5        <rdar://problem/22561011>
     6
     7        Reviewed by Ryosuke Niwa.
     8
     9        Rebaseline / update existing tests now that our behavior has changed.
     10
     11        * fast/dom/Element/attribute-uppercase-expected.txt:
     12        * fast/dom/Element/mozilla-dom-base-tests/test_bug1075702-expected.txt:
     13        * fast/dom/Element/mozilla-dom-base-tests/test_bug1075702.html:
     14        * fast/dom/Element/setAttributeNode-overriding-lowercase-values-1-expected.txt:
     15        * fast/dom/Element/setAttributeNode-overriding-lowercase-values-2-expected.txt:
     16
    1172015-09-15  Chris Dumez  <cdumez@apple.com>
    218
  • trunk/LayoutTests/fast/dom/Element/attribute-uppercase-expected.txt

    r13289 r189825  
    2424The following should be empty, false, or null.
    2525
    26     getAttributeNS(ATTR_NAME) =
     26    getAttributeNS(ATTR_NAME) = null
    2727    hasAttributeNS(ATTR_NAME) = false
    2828    getAttributeNodeNS(ATTR_NAME) = null
  • trunk/LayoutTests/fast/dom/Element/mozilla-dom-base-tests/test_bug1075702-expected.txt

    r179497 r189825  
    55
    66PASS document.documentElement.hasAttributeNS("", "aa") is false
    7 PASS document.documentElement.getAttributeNS("", "aa") is ""
     7PASS document.documentElement.getAttributeNS("", "aa") is null
    88PASS document.documentElement.hasAttributeNS("", "AA") is true
    99PASS document.documentElement.getAttributeNS("", "AA") is "UPPERCASE"
  • trunk/LayoutTests/fast/dom/Element/mozilla-dom-base-tests/test_bug1075702.html

    r179497 r189825  
    3030
    3131  shouldBeFalse('document.documentElement.hasAttributeNS("", "aa")');
    32   shouldBeEqualToString('document.documentElement.getAttributeNS("", "aa")', '');
     32  shouldBeNull('document.documentElement.getAttributeNS("", "aa")');
    3333  shouldBeTrue('document.documentElement.hasAttributeNS("", "AA")');
    3434  shouldBeEqualToString('document.documentElement.getAttributeNS("", "AA")', 'UPPERCASE');
  • trunk/LayoutTests/fast/dom/Element/setAttributeNode-overriding-lowercase-values-1-expected.txt

    r179497 r189825  
    1010PASS document.documentElement.getAttributeNS("", "foobar") is "WebKit"
    1111PASS document.documentElement.hasAttributeNS("", "foobar") is true
    12 FAIL document.documentElement.getAttributeNS("", "FooBar") should be null (of type object). Was  (of type string).
     12PASS document.documentElement.getAttributeNS("", "FooBar") is null
    1313PASS document.documentElement.hasAttributeNS("", "FooBar") is false
    1414PASS document.documentElement.attributes.length is 1
     
    1818PASS document.documentElement.getAttribute("FooBar") is null
    1919PASS document.documentElement.hasAttribute("FooBar") is false
    20 FAIL document.documentElement.getAttributeNS("", "foobar") should be null (of type object). Was  (of type string).
     20PASS document.documentElement.getAttributeNS("", "foobar") is null
    2121PASS document.documentElement.hasAttributeNS("", "foobar") is false
    2222PASS document.documentElement.getAttributeNS("", "FooBar") is "Rocks!"
  • trunk/LayoutTests/fast/dom/Element/setAttributeNode-overriding-lowercase-values-2-expected.txt

    r179497 r189825  
    1111PASS testElement.getAttributeNS("ns1", "foobar") is "WebKit"
    1212PASS testElement.hasAttributeNS("ns1", "foobar") is true
    13 FAIL testElement.getAttributeNS("ns1", "FooBar") should be null (of type object). Was  (of type string).
     13PASS testElement.getAttributeNS("ns1", "FooBar") is null
    1414PASS testElement.hasAttributeNS("ns1", "FooBar") is false
    15 FAIL testElement.getAttributeNS("", "foobar") should be null (of type object). Was  (of type string).
     15PASS testElement.getAttributeNS("", "foobar") is null
    1616PASS testElement.hasAttributeNS("", "foobar") is false
    17 FAIL testElement.getAttributeNS("", "FooBar") should be null (of type object). Was  (of type string).
     17PASS testElement.getAttributeNS("", "FooBar") is null
    1818PASS testElement.hasAttributeNS("", "FooBar") is false
    1919PASS testElement.attributes.length is 1
     
    2222PASS testElement.getAttribute("FooBar") is null
    2323PASS testElement.hasAttribute("FooBar") is false
    24 FAIL testElement.getAttributeNS("ns1", "foobar") should be null (of type object). Was  (of type string).
     24PASS testElement.getAttributeNS("ns1", "foobar") is null
    2525PASS testElement.hasAttributeNS("ns1", "foobar") is false
    2626PASS testElement.getAttributeNS("ns1", "FooBar") is "Rocks!"
    2727PASS testElement.hasAttributeNS("ns1", "FooBar") is true
    28 FAIL testElement.getAttributeNS("", "foobar") should be null (of type object). Was  (of type string).
     28PASS testElement.getAttributeNS("", "foobar") is null
    2929PASS testElement.hasAttributeNS("", "foobar") is false
    30 FAIL testElement.getAttributeNS("", "FooBar") should be null (of type object). Was  (of type string).
     30PASS testElement.getAttributeNS("", "FooBar") is null
    3131PASS testElement.hasAttributeNS("", "FooBar") is false
    3232PASS successfullyParsed is true
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r189770 r189825  
     12015-09-15  Chris Dumez  <cdumez@apple.com>
     2
     3        Element.getAttributeNS() should return null if the attribute does not exist
     4        https://bugs.webkit.org/show_bug.cgi?id=149180
     5        <rdar://problem/22561011>
     6
     7        Reviewed by Ryosuke Niwa.
     8
     9        Rebaseline several W3C DOM tests now that more checks are passing.
     10
     11        * web-platform-tests/dom/nodes/attributes-expected.txt:
     12        * web-platform-tests/dom/nodes/case-expected.txt:
     13
    1142015-09-14  Chris Dumez  <cdumez@apple.com>
    215
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/attributes-expected.txt

    r189471 r189825  
    22FAIL AttrExodus assert_false: expected false got true
    33PASS When qualifiedName does not match the Name production, an INVALID_CHARACTER_ERR exception is to be thrown. (setAttribute)
    4 FAIL setAttribute should lowercase its name argument (upper case attribute) assert_equals: expected (object) null but got (string) ""
    5 FAIL setAttribute should lowercase its name argument (mixed case attribute) assert_equals: expected (object) null but got (string) ""
     4PASS setAttribute should lowercase its name argument (upper case attribute)
     5PASS setAttribute should lowercase its name argument (mixed case attribute)
    66PASS setAttribute should not throw even when qualifiedName starts with 'xmlns'
    77PASS Basic functionality should be intact.
     
    2727PASS Specified attributes should be accessible.
    2828PASS Entities in attributes should have been expanded while parsing.
    29 FAIL Unset attributes return null assert_equals: expected (object) null but got (string) ""
    30 FAIL First set attribute is returned by getAttribute assert_equals: expected (object) null but got (string) ""
     29PASS Unset attributes return null
     30PASS First set attribute is returned by getAttribute
    3131PASS Style attributes are not normalized
    32 FAIL Only lowercase attributes are returned on HTML elements (upper case attribute) assert_equals: expected (object) null but got (string) ""
    33 FAIL Only lowercase attributes are returned on HTML elements (mixed case attribute) assert_equals: expected (object) null but got (string) ""
     32PASS Only lowercase attributes are returned on HTML elements (upper case attribute)
     33PASS Only lowercase attributes are returned on HTML elements (mixed case attribute)
    3434PASS First set attribute is returned with mapped attribute set first
    3535PASS First set attribute is returned with mapped attribute set later
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/case-expected.txt

    r189471 r189825  
    3030PASS createElementNS http://www.w3.org/1999/xhtml,abc,Abc
    3131PASS setAttributeNS http://www.w3.org/1999/xhtml,abc,Abc
    32 FAIL getAttributeNS http://www.w3.org/1999/xhtml,abc,Abc assert_equals: expected (object) null but got (string) ""
     32PASS getAttributeNS http://www.w3.org/1999/xhtml,abc,Abc
    3333PASS createElementNS http://www.w3.org/1999/xhtml,abc,ABC
    3434PASS setAttributeNS http://www.w3.org/1999/xhtml,abc,ABC
    35 FAIL getAttributeNS http://www.w3.org/1999/xhtml,abc,ABC assert_equals: expected (object) null but got (string) ""
     35PASS getAttributeNS http://www.w3.org/1999/xhtml,abc,ABC
    3636PASS createElementNS http://www.w3.org/1999/xhtml,abc,ä
    3737PASS setAttributeNS http://www.w3.org/1999/xhtml,abc,ä
     
    4545PASS createElementNS http://www.w3.org/1999/xhtml,Abc,Abc
    4646PASS setAttributeNS http://www.w3.org/1999/xhtml,Abc,Abc
    47 FAIL getAttributeNS http://www.w3.org/1999/xhtml,Abc,Abc assert_equals: expected (object) null but got (string) ""
     47PASS getAttributeNS http://www.w3.org/1999/xhtml,Abc,Abc
    4848PASS createElementNS http://www.w3.org/1999/xhtml,Abc,ABC
    4949PASS setAttributeNS http://www.w3.org/1999/xhtml,Abc,ABC
    50 FAIL getAttributeNS http://www.w3.org/1999/xhtml,Abc,ABC assert_equals: expected (object) null but got (string) ""
     50PASS getAttributeNS http://www.w3.org/1999/xhtml,Abc,ABC
    5151PASS createElementNS http://www.w3.org/1999/xhtml,Abc,ä
    5252PASS setAttributeNS http://www.w3.org/1999/xhtml,Abc,ä
     
    6060PASS createElementNS http://www.w3.org/1999/xhtml,ABC,Abc
    6161PASS setAttributeNS http://www.w3.org/1999/xhtml,ABC,Abc
    62 FAIL getAttributeNS http://www.w3.org/1999/xhtml,ABC,Abc assert_equals: expected (object) null but got (string) ""
     62PASS getAttributeNS http://www.w3.org/1999/xhtml,ABC,Abc
    6363PASS createElementNS http://www.w3.org/1999/xhtml,ABC,ABC
    6464PASS setAttributeNS http://www.w3.org/1999/xhtml,ABC,ABC
    65 FAIL getAttributeNS http://www.w3.org/1999/xhtml,ABC,ABC assert_equals: expected (object) null but got (string) ""
     65PASS getAttributeNS http://www.w3.org/1999/xhtml,ABC,ABC
    6666PASS createElementNS http://www.w3.org/1999/xhtml,ABC,ä
    6767PASS setAttributeNS http://www.w3.org/1999/xhtml,ABC,ä
     
    7575PASS createElementNS http://www.w3.org/1999/xhtml,ä,Abc
    7676PASS setAttributeNS http://www.w3.org/1999/xhtml,ä,Abc
    77 FAIL getAttributeNS http://www.w3.org/1999/xhtml,ä,Abc assert_equals: expected (object) null but got (string) ""
     77PASS getAttributeNS http://www.w3.org/1999/xhtml,ä,Abc
    7878PASS createElementNS http://www.w3.org/1999/xhtml,ä,ABC
    7979PASS setAttributeNS http://www.w3.org/1999/xhtml,ä,ABC
    80 FAIL getAttributeNS http://www.w3.org/1999/xhtml,ä,ABC assert_equals: expected (object) null but got (string) ""
     80PASS getAttributeNS http://www.w3.org/1999/xhtml,ä,ABC
    8181PASS createElementNS http://www.w3.org/1999/xhtml,ä,ä
    8282PASS setAttributeNS http://www.w3.org/1999/xhtml,ä,ä
     
    9090PASS createElementNS http://www.w3.org/1999/xhtml,Ä,Abc
    9191PASS setAttributeNS http://www.w3.org/1999/xhtml,Ä,Abc
    92 FAIL getAttributeNS http://www.w3.org/1999/xhtml,Ä,Abc assert_equals: expected (object) null but got (string) ""
     92PASS getAttributeNS http://www.w3.org/1999/xhtml,Ä,Abc
    9393PASS createElementNS http://www.w3.org/1999/xhtml,Ä,ABC
    9494PASS setAttributeNS http://www.w3.org/1999/xhtml,Ä,ABC
    95 FAIL getAttributeNS http://www.w3.org/1999/xhtml,Ä,ABC assert_equals: expected (object) null but got (string) ""
     95PASS getAttributeNS http://www.w3.org/1999/xhtml,Ä,ABC
    9696PASS createElementNS http://www.w3.org/1999/xhtml,Ä,ä
    9797PASS setAttributeNS http://www.w3.org/1999/xhtml,Ä,ä
     
    105105PASS createElementNS http://www.w3.org/2000/svg,abc,Abc
    106106PASS setAttributeNS http://www.w3.org/2000/svg,abc,Abc
    107 FAIL getAttributeNS http://www.w3.org/2000/svg,abc,Abc assert_equals: expected (object) null but got (string) ""
     107PASS getAttributeNS http://www.w3.org/2000/svg,abc,Abc
    108108PASS createElementNS http://www.w3.org/2000/svg,abc,ABC
    109109PASS setAttributeNS http://www.w3.org/2000/svg,abc,ABC
    110 FAIL getAttributeNS http://www.w3.org/2000/svg,abc,ABC assert_equals: expected (object) null but got (string) ""
     110PASS getAttributeNS http://www.w3.org/2000/svg,abc,ABC
    111111PASS createElementNS http://www.w3.org/2000/svg,abc,ä
    112112PASS setAttributeNS http://www.w3.org/2000/svg,abc,ä
     
    120120PASS createElementNS http://www.w3.org/2000/svg,Abc,Abc
    121121PASS setAttributeNS http://www.w3.org/2000/svg,Abc,Abc
    122 FAIL getAttributeNS http://www.w3.org/2000/svg,Abc,Abc assert_equals: expected (object) null but got (string) ""
     122PASS getAttributeNS http://www.w3.org/2000/svg,Abc,Abc
    123123PASS createElementNS http://www.w3.org/2000/svg,Abc,ABC
    124124PASS setAttributeNS http://www.w3.org/2000/svg,Abc,ABC
    125 FAIL getAttributeNS http://www.w3.org/2000/svg,Abc,ABC assert_equals: expected (object) null but got (string) ""
     125PASS getAttributeNS http://www.w3.org/2000/svg,Abc,ABC
    126126PASS createElementNS http://www.w3.org/2000/svg,Abc,ä
    127127PASS setAttributeNS http://www.w3.org/2000/svg,Abc,ä
     
    135135PASS createElementNS http://www.w3.org/2000/svg,ABC,Abc
    136136PASS setAttributeNS http://www.w3.org/2000/svg,ABC,Abc
    137 FAIL getAttributeNS http://www.w3.org/2000/svg,ABC,Abc assert_equals: expected (object) null but got (string) ""
     137PASS getAttributeNS http://www.w3.org/2000/svg,ABC,Abc
    138138PASS createElementNS http://www.w3.org/2000/svg,ABC,ABC
    139139PASS setAttributeNS http://www.w3.org/2000/svg,ABC,ABC
    140 FAIL getAttributeNS http://www.w3.org/2000/svg,ABC,ABC assert_equals: expected (object) null but got (string) ""
     140PASS getAttributeNS http://www.w3.org/2000/svg,ABC,ABC
    141141PASS createElementNS http://www.w3.org/2000/svg,ABC,ä
    142142PASS setAttributeNS http://www.w3.org/2000/svg,ABC,ä
     
    150150PASS createElementNS http://www.w3.org/2000/svg,ä,Abc
    151151PASS setAttributeNS http://www.w3.org/2000/svg,ä,Abc
    152 FAIL getAttributeNS http://www.w3.org/2000/svg,ä,Abc assert_equals: expected (object) null but got (string) ""
     152PASS getAttributeNS http://www.w3.org/2000/svg,ä,Abc
    153153PASS createElementNS http://www.w3.org/2000/svg,ä,ABC
    154154PASS setAttributeNS http://www.w3.org/2000/svg,ä,ABC
    155 FAIL getAttributeNS http://www.w3.org/2000/svg,ä,ABC assert_equals: expected (object) null but got (string) ""
     155PASS getAttributeNS http://www.w3.org/2000/svg,ä,ABC
    156156PASS createElementNS http://www.w3.org/2000/svg,ä,ä
    157157PASS setAttributeNS http://www.w3.org/2000/svg,ä,ä
     
    165165PASS createElementNS http://www.w3.org/2000/svg,Ä,Abc
    166166PASS setAttributeNS http://www.w3.org/2000/svg,Ä,Abc
    167 FAIL getAttributeNS http://www.w3.org/2000/svg,Ä,Abc assert_equals: expected (object) null but got (string) ""
     167PASS getAttributeNS http://www.w3.org/2000/svg,Ä,Abc
    168168PASS createElementNS http://www.w3.org/2000/svg,Ä,ABC
    169169PASS setAttributeNS http://www.w3.org/2000/svg,Ä,ABC
    170 FAIL getAttributeNS http://www.w3.org/2000/svg,Ä,ABC assert_equals: expected (object) null but got (string) ""
     170PASS getAttributeNS http://www.w3.org/2000/svg,Ä,ABC
    171171PASS createElementNS http://www.w3.org/2000/svg,Ä,ä
    172172PASS setAttributeNS http://www.w3.org/2000/svg,Ä,ä
     
    180180PASS createElementNS http://FOO,abc,Abc
    181181PASS setAttributeNS http://FOO,abc,Abc
    182 FAIL getAttributeNS http://FOO,abc,Abc assert_equals: expected (object) null but got (string) ""
     182PASS getAttributeNS http://FOO,abc,Abc
    183183PASS createElementNS http://FOO,abc,ABC
    184184PASS setAttributeNS http://FOO,abc,ABC
    185 FAIL getAttributeNS http://FOO,abc,ABC assert_equals: expected (object) null but got (string) ""
     185PASS getAttributeNS http://FOO,abc,ABC
    186186PASS createElementNS http://FOO,abc,ä
    187187PASS setAttributeNS http://FOO,abc,ä
     
    195195PASS createElementNS http://FOO,Abc,Abc
    196196PASS setAttributeNS http://FOO,Abc,Abc
    197 FAIL getAttributeNS http://FOO,Abc,Abc assert_equals: expected (object) null but got (string) ""
     197PASS getAttributeNS http://FOO,Abc,Abc
    198198PASS createElementNS http://FOO,Abc,ABC
    199199PASS setAttributeNS http://FOO,Abc,ABC
    200 FAIL getAttributeNS http://FOO,Abc,ABC assert_equals: expected (object) null but got (string) ""
     200PASS getAttributeNS http://FOO,Abc,ABC
    201201PASS createElementNS http://FOO,Abc,ä
    202202PASS setAttributeNS http://FOO,Abc,ä
     
    210210PASS createElementNS http://FOO,ABC,Abc
    211211PASS setAttributeNS http://FOO,ABC,Abc
    212 FAIL getAttributeNS http://FOO,ABC,Abc assert_equals: expected (object) null but got (string) ""
     212PASS getAttributeNS http://FOO,ABC,Abc
    213213PASS createElementNS http://FOO,ABC,ABC
    214214PASS setAttributeNS http://FOO,ABC,ABC
    215 FAIL getAttributeNS http://FOO,ABC,ABC assert_equals: expected (object) null but got (string) ""
     215PASS getAttributeNS http://FOO,ABC,ABC
    216216PASS createElementNS http://FOO,ABC,ä
    217217PASS setAttributeNS http://FOO,ABC,ä
     
    225225PASS createElementNS http://FOO,ä,Abc
    226226PASS setAttributeNS http://FOO,ä,Abc
    227 FAIL getAttributeNS http://FOO,ä,Abc assert_equals: expected (object) null but got (string) ""
     227PASS getAttributeNS http://FOO,ä,Abc
    228228PASS createElementNS http://FOO,ä,ABC
    229229PASS setAttributeNS http://FOO,ä,ABC
    230 FAIL getAttributeNS http://FOO,ä,ABC assert_equals: expected (object) null but got (string) ""
     230PASS getAttributeNS http://FOO,ä,ABC
    231231PASS createElementNS http://FOO,ä,ä
    232232PASS setAttributeNS http://FOO,ä,ä
     
    240240PASS createElementNS http://FOO,Ä,Abc
    241241PASS setAttributeNS http://FOO,Ä,Abc
    242 FAIL getAttributeNS http://FOO,Ä,Abc assert_equals: expected (object) null but got (string) ""
     242PASS getAttributeNS http://FOO,Ä,Abc
    243243PASS createElementNS http://FOO,Ä,ABC
    244244PASS setAttributeNS http://FOO,Ä,ABC
    245 FAIL getAttributeNS http://FOO,Ä,ABC assert_equals: expected (object) null but got (string) ""
     245PASS getAttributeNS http://FOO,Ä,ABC
    246246PASS createElementNS http://FOO,Ä,ä
    247247PASS setAttributeNS http://FOO,Ä,ä
     
    275275PASS createElementNS Abc
    276276PASS setAttributeNS Abc
    277 FAIL getAttributeNS Abc assert_equals: expected (object) null but got (string) ""
     277PASS getAttributeNS Abc
    278278PASS createElementNS ABC
    279279PASS setAttributeNS ABC
    280 FAIL getAttributeNS ABC assert_equals: expected (object) null but got (string) ""
     280PASS getAttributeNS ABC
    281281PASS createElementNS ä
    282282PASS setAttributeNS ä
  • trunk/Source/WebCore/ChangeLog

    r189824 r189825  
     12015-09-15  Chris Dumez  <cdumez@apple.com>
     2
     3        Element.getAttributeNS() should return null if the attribute does not exist
     4        https://bugs.webkit.org/show_bug.cgi?id=149180
     5        <rdar://problem/22561011>
     6
     7        Reviewed by Ryosuke Niwa.
     8
     9        Element.getAttributeNS() should return null if the attribute does not
     10        exist, similarly to what Element.getAttribute() does:
     11        - https://dom.spec.whatwg.org/#element (both return a nullable DOMString).
     12        - https://dom.spec.whatwg.org/#dom-element-getattributens (step 2)
     13
     14        Firefox and Chrome match the specification. However, WebKit was returning
     15        an empty string for getAttributeNS() and null for getAttribute(). This
     16        patch aligns WebKit's behavior with the specification and other browsers.
     17
     18        No new tests, already covered by existing tests.
     19
     20        * dom/Element.idl:
     21
    1222015-09-15  Ryosuke Niwa  <rniwa@webkit.org>
    223
  • trunk/Source/WebCore/dom/Element.idl

    r188809 r189825  
    11/*
    2  * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved.
     2 * Copyright (C) 2006, 2007, 2009, 2015 Apple Inc. All rights reserved.
    33 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
    44 *
     
    5050    // DOM Level 2 Core
    5151
    52     [ObjCLegacyUnnamedParameters] DOMString getAttributeNS([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI,
     52    [ObjCLegacyUnnamedParameters, TreatReturnedNullStringAs=Null] DOMString getAttributeNS([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI,
    5353                                            [Default=Undefined] optional DOMString localName);
    5454    [ObjCLegacyUnnamedParameters, RaisesException] void setAttributeNS([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI,
Note: See TracChangeset for help on using the changeset viewer.