Changeset 195485 in webkit


Ignore:
Timestamp:
Jan 22, 2016 3:22:07 PM (8 years ago)
Author:
Chris Dumez
Message:

Document.URL / Document.documentURI should return "about:blank" instead of empty string / null
https://bugs.webkit.org/show_bug.cgi?id=153363
<rdar://problem/22549736>

Reviewed by Ryosuke Niwa.

LayoutTests/imported/w3c:

Rebaseline several W3C tests now that more checks are passing.

  • web-platform-tests/dom/interfaces-expected.txt:
  • web-platform-tests/dom/nodes/DOMImplementation-createDocument-expected.txt:
  • web-platform-tests/dom/nodes/DOMImplementation-createHTMLDocument-expected.txt:
  • web-platform-tests/dom/nodes/Document-constructor-expected.txt:
  • web-platform-tests/dom/nodes/Node-properties-expected.txt:
  • web-platform-tests/html/dom/interfaces-expected.txt:

Source/WebCore:

Document.URL / Document.documentURI should return "about:blank" instead
of empty string / null, as per the specification:

Also, Document.documentURI should be an alias for Document.URL as per:

Firefox matches the specification.

No new tests, already covered by existing W3C tests.

  • dom/Document.h:

(WebCore::Document::urlForBindings):

  • dom/Document.idl:

LayoutTests:

Drop outdated tests.

  • dom/xhtml/level3/core/documentgetdocumenturi02-expected.txt: Removed.
  • dom/xhtml/level3/core/documentgetdocumenturi02.js: Removed.
  • dom/xhtml/level3/core/documentgetdocumenturi02.xhtml: Removed.
  • dom/xhtml/level3/core/documentgetdocumenturi03-expected.txt: Removed.
  • dom/xhtml/level3/core/documentgetdocumenturi03.js: Removed.
  • dom/xhtml/level3/core/documentgetdocumenturi03.xhtml: Removed.
  • dom/xhtml/level3/core/documentsetdocumenturi03-expected.txt: Removed.
  • dom/xhtml/level3/core/documentsetdocumenturi03.js: Removed.
  • dom/xhtml/level3/core/documentsetdocumenturi03.xhtml: Removed.
  • fast/dom/document-attribute-js-null-expected.txt:
  • fast/dom/document-attribute-js-null.html:
Location:
trunk
Files:
9 deleted
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r195482 r195485  
     12016-01-22  Chris Dumez  <cdumez@apple.com>
     2
     3        Document.URL / Document.documentURI should return "about:blank" instead of empty string / null
     4        https://bugs.webkit.org/show_bug.cgi?id=153363
     5        <rdar://problem/22549736>
     6
     7        Reviewed by Ryosuke Niwa.
     8
     9        Drop outdated tests.
     10
     11        * dom/xhtml/level3/core/documentgetdocumenturi02-expected.txt: Removed.
     12        * dom/xhtml/level3/core/documentgetdocumenturi02.js: Removed.
     13        * dom/xhtml/level3/core/documentgetdocumenturi02.xhtml: Removed.
     14        * dom/xhtml/level3/core/documentgetdocumenturi03-expected.txt: Removed.
     15        * dom/xhtml/level3/core/documentgetdocumenturi03.js: Removed.
     16        * dom/xhtml/level3/core/documentgetdocumenturi03.xhtml: Removed.
     17        * dom/xhtml/level3/core/documentsetdocumenturi03-expected.txt: Removed.
     18        * dom/xhtml/level3/core/documentsetdocumenturi03.js: Removed.
     19        * dom/xhtml/level3/core/documentsetdocumenturi03.xhtml: Removed.
     20        * fast/dom/document-attribute-js-null-expected.txt:
     21        * fast/dom/document-attribute-js-null.html:
     22
    1232016-01-22  Tim Horton  <timothy_horton@apple.com>
    224
  • trunk/LayoutTests/fast/dom/document-attribute-js-null-expected.txt

    r65885 r195485  
    22
    33TEST SUCCEEDED: Got the expected exception (9). [tested Document.xmlVersion]
    4 TEST SUCCEEDED: The value was null. [tested Document.documentURI]
    54TEST SUCCEEDED: The value was undefined. [tested Document.charset]
    65TEST SUCCEEDED: The value was null. [tested Document.selectedStylesheetSet]
  • trunk/LayoutTests/fast/dom/document-attribute-js-null.html

    r120792 r195485  
    6666                    attributes: [
    6767                        {name: 'xmlVersion', expectedExceptionCode: 9},
    68                         {name: 'documentURI', expectedNull: null},
    6968                        {name: 'charset', expectedNull: undefined},
    7069                        {name: 'selectedStylesheetSet', expectedNull: null}
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r195423 r195485  
     12016-01-22  Chris Dumez  <cdumez@apple.com>
     2
     3        Document.URL / Document.documentURI should return "about:blank" instead of empty string / null
     4        https://bugs.webkit.org/show_bug.cgi?id=153363
     5        <rdar://problem/22549736>
     6
     7        Reviewed by Ryosuke Niwa.
     8
     9        Rebaseline several W3C tests now that more checks are passing.
     10
     11        * web-platform-tests/dom/interfaces-expected.txt:
     12        * web-platform-tests/dom/nodes/DOMImplementation-createDocument-expected.txt:
     13        * web-platform-tests/dom/nodes/DOMImplementation-createHTMLDocument-expected.txt:
     14        * web-platform-tests/dom/nodes/Document-constructor-expected.txt:
     15        * web-platform-tests/dom/nodes/Node-properties-expected.txt:
     16        * web-platform-tests/html/dom/interfaces-expected.txt:
     17
    1182016-01-21  Brady Eidson  <beidson@apple.com>
    219
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/interfaces-expected.txt

    r195336 r195485  
    483483PASS Document interface: xmlDoc must inherit property "implementation" with the proper type (0)
    484484PASS Document interface: xmlDoc must inherit property "URL" with the proper type (1)
    485 FAIL Document interface: xmlDoc must inherit property "documentURI" with the proper type (2) assert_equals: expected "string" but got "object"
     485PASS Document interface: xmlDoc must inherit property "documentURI" with the proper type (2)
    486486PASS Document interface: xmlDoc must inherit property "origin" with the proper type (3)
    487487PASS Document interface: xmlDoc must inherit property "compatMode" with the proper type (4)
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/DOMImplementation-createDocument-expected.txt

    r195322 r195485  
    22PASS DOMImplementation.createDocument(namespace, qualifiedName, doctype)
    33PASS createDocument test 0: null,undefined,null,null
    4 FAIL createDocument test 0: metadata for null,undefined,null assert_equals: expected "about:blank" but got ""
     4PASS createDocument test 0: metadata for null,undefined,null
    55FAIL createDocument test 0: characterSet aliases for null,undefined,null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    66PASS createDocument test 1: null,"foo",null,null
    7 FAIL createDocument test 1: metadata for null,"foo",null assert_equals: expected "about:blank" but got ""
     7PASS createDocument test 1: metadata for null,"foo",null
    88FAIL createDocument test 1: characterSet aliases for null,"foo",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    99PASS createDocument test 2: null,"1foo",null,"INVALID_CHARACTER_ERR"
    1010PASS createDocument test 3: null,"f1oo",null,null
    11 FAIL createDocument test 3: metadata for null,"f1oo",null assert_equals: expected "about:blank" but got ""
     11PASS createDocument test 3: metadata for null,"f1oo",null
    1212FAIL createDocument test 3: characterSet aliases for null,"f1oo",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    1313PASS createDocument test 4: null,"foo1",null,null
    14 FAIL createDocument test 4: metadata for null,"foo1",null assert_equals: expected "about:blank" but got ""
     14PASS createDocument test 4: metadata for null,"foo1",null
    1515FAIL createDocument test 4: characterSet aliases for null,"foo1",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    1616PASS createDocument test 5: null,"1foo",null,"INVALID_CHARACTER_ERR"
     
    3232PASS createDocument test 21: null,":",null,"NAMESPACE_ERR"
    3333PASS createDocument test 22: null,"xml",null,null
    34 FAIL createDocument test 22: metadata for null,"xml",null assert_equals: expected "about:blank" but got ""
     34PASS createDocument test 22: metadata for null,"xml",null
    3535FAIL createDocument test 22: characterSet aliases for null,"xml",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    3636PASS createDocument test 23: null,"xmlns",null,"NAMESPACE_ERR"
    3737PASS createDocument test 24: null,"xmlfoo",null,null
    38 FAIL createDocument test 24: metadata for null,"xmlfoo",null assert_equals: expected "about:blank" but got ""
     38PASS createDocument test 24: metadata for null,"xmlfoo",null
    3939FAIL createDocument test 24: characterSet aliases for null,"xmlfoo",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    4040PASS createDocument test 25: null,"xml:foo",null,"NAMESPACE_ERR"
     
    4646PASS createDocument test 31: "","foo:",null,"NAMESPACE_ERR"
    4747PASS createDocument test 32: undefined,undefined,null,null
    48 FAIL createDocument test 32: metadata for undefined,undefined,null assert_equals: expected "about:blank" but got ""
     48PASS createDocument test 32: metadata for undefined,undefined,null
    4949FAIL createDocument test 32: characterSet aliases for undefined,undefined,null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    5050PASS createDocument test 33: undefined,"foo",null,null
    51 FAIL createDocument test 33: metadata for undefined,"foo",null assert_equals: expected "about:blank" but got ""
     51PASS createDocument test 33: metadata for undefined,"foo",null
    5252FAIL createDocument test 33: characterSet aliases for undefined,"foo",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    5353PASS createDocument test 34: undefined,"1foo",null,"INVALID_CHARACTER_ERR"
    5454PASS createDocument test 35: undefined,"f1oo",null,null
    55 FAIL createDocument test 35: metadata for undefined,"f1oo",null assert_equals: expected "about:blank" but got ""
     55PASS createDocument test 35: metadata for undefined,"f1oo",null
    5656FAIL createDocument test 35: characterSet aliases for undefined,"f1oo",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    5757PASS createDocument test 36: undefined,"foo1",null,null
    58 FAIL createDocument test 36: metadata for undefined,"foo1",null assert_equals: expected "about:blank" but got ""
     58PASS createDocument test 36: metadata for undefined,"foo1",null
    5959FAIL createDocument test 36: characterSet aliases for undefined,"foo1",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    6060PASS createDocument test 37: undefined,":foo",null,"NAMESPACE_ERR"
     
    6262PASS createDocument test 39: undefined,"foo:",null,"NAMESPACE_ERR"
    6363PASS createDocument test 40: undefined,"xml",null,null
    64 FAIL createDocument test 40: metadata for undefined,"xml",null assert_equals: expected "about:blank" but got ""
     64PASS createDocument test 40: metadata for undefined,"xml",null
    6565FAIL createDocument test 40: characterSet aliases for undefined,"xml",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    6666PASS createDocument test 41: undefined,"xmlns",null,"NAMESPACE_ERR"
    6767PASS createDocument test 42: undefined,"xmlfoo",null,null
    68 FAIL createDocument test 42: metadata for undefined,"xmlfoo",null assert_equals: expected "about:blank" but got ""
     68PASS createDocument test 42: metadata for undefined,"xmlfoo",null
    6969FAIL createDocument test 42: characterSet aliases for undefined,"xmlfoo",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    7070PASS createDocument test 43: undefined,"xml:foo",null,"NAMESPACE_ERR"
     
    7272PASS createDocument test 45: undefined,"xmlfoo:bar",null,"NAMESPACE_ERR"
    7373PASS createDocument test 46: "http://example.com/","foo",null,null
    74 FAIL createDocument test 46: metadata for "http://example.com/","foo",null assert_equals: expected "about:blank" but got ""
     74PASS createDocument test 46: metadata for "http://example.com/","foo",null
    7575FAIL createDocument test 46: characterSet aliases for "http://example.com/","foo",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    7676PASS createDocument test 47: "http://example.com/","1foo",null,"INVALID_CHARACTER_ERR"
    7777PASS createDocument test 48: "http://example.com/","f1oo",null,null
    78 FAIL createDocument test 48: metadata for "http://example.com/","f1oo",null assert_equals: expected "about:blank" but got ""
     78PASS createDocument test 48: metadata for "http://example.com/","f1oo",null
    7979FAIL createDocument test 48: characterSet aliases for "http://example.com/","f1oo",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    8080PASS createDocument test 49: "http://example.com/","foo1",null,null
    81 FAIL createDocument test 49: metadata for "http://example.com/","foo1",null assert_equals: expected "about:blank" but got ""
     81PASS createDocument test 49: metadata for "http://example.com/","foo1",null
    8282FAIL createDocument test 49: characterSet aliases for "http://example.com/","foo1",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    8383PASS createDocument test 50: "http://example.com/",":foo",null,"NAMESPACE_ERR"
    8484PASS createDocument test 51: "http://example.com/","f:oo",null,null
    85 FAIL createDocument test 51: metadata for "http://example.com/","f:oo",null assert_equals: expected "about:blank" but got ""
     85PASS createDocument test 51: metadata for "http://example.com/","f:oo",null
    8686FAIL createDocument test 51: characterSet aliases for "http://example.com/","f:oo",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    8787PASS createDocument test 52: "http://example.com/","foo:",null,"NAMESPACE_ERR"
    8888PASS createDocument test 53: "http://example.com/","_:_",null,null
    89 FAIL createDocument test 53: metadata for "http://example.com/","_:_",null assert_equals: expected "about:blank" but got ""
     89PASS createDocument test 53: metadata for "http://example.com/","_:_",null
    9090FAIL createDocument test 53: characterSet aliases for "http://example.com/","_:_",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    9191PASS createDocument test 54: "http://example.com/","_:h0",null,null
    92 FAIL createDocument test 54: metadata for "http://example.com/","_:h0",null assert_equals: expected "about:blank" but got ""
     92PASS createDocument test 54: metadata for "http://example.com/","_:h0",null
    9393FAIL createDocument test 54: characterSet aliases for "http://example.com/","_:h0",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    9494PASS createDocument test 55: "http://example.com/","_:test",null,null
    95 FAIL createDocument test 55: metadata for "http://example.com/","_:test",null assert_equals: expected "about:blank" but got ""
     95PASS createDocument test 55: metadata for "http://example.com/","_:test",null
    9696FAIL createDocument test 55: characterSet aliases for "http://example.com/","_:test",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    9797PASS createDocument test 56: "http://example.com/","l_:_",null,null
    98 FAIL createDocument test 56: metadata for "http://example.com/","l_:_",null assert_equals: expected "about:blank" but got ""
     98PASS createDocument test 56: metadata for "http://example.com/","l_:_",null
    9999FAIL createDocument test 56: characterSet aliases for "http://example.com/","l_:_",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    100100PASS createDocument test 57: "http://example.com/","ns:_0",null,null
    101 FAIL createDocument test 57: metadata for "http://example.com/","ns:_0",null assert_equals: expected "about:blank" but got ""
     101PASS createDocument test 57: metadata for "http://example.com/","ns:_0",null
    102102FAIL createDocument test 57: characterSet aliases for "http://example.com/","ns:_0",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    103103PASS createDocument test 58: "http://example.com/","ns:a0",null,null
    104 FAIL createDocument test 58: metadata for "http://example.com/","ns:a0",null assert_equals: expected "about:blank" but got ""
     104PASS createDocument test 58: metadata for "http://example.com/","ns:a0",null
    105105FAIL createDocument test 58: characterSet aliases for "http://example.com/","ns:a0",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    106106PASS createDocument test 59: "http://example.com/","ns0:test",null,null
    107 FAIL createDocument test 59: metadata for "http://example.com/","ns0:test",null assert_equals: expected "about:blank" but got ""
     107PASS createDocument test 59: metadata for "http://example.com/","ns0:test",null
    108108FAIL createDocument test 59: characterSet aliases for "http://example.com/","ns0:test",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    109109PASS createDocument test 60: "http://example.com/","a.b:c",null,null
    110 FAIL createDocument test 60: metadata for "http://example.com/","a.b:c",null assert_equals: expected "about:blank" but got ""
     110PASS createDocument test 60: metadata for "http://example.com/","a.b:c",null
    111111FAIL createDocument test 60: characterSet aliases for "http://example.com/","a.b:c",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    112112PASS createDocument test 61: "http://example.com/","a-b:c",null,null
    113 FAIL createDocument test 61: metadata for "http://example.com/","a-b:c",null assert_equals: expected "about:blank" but got ""
     113PASS createDocument test 61: metadata for "http://example.com/","a-b:c",null
    114114FAIL createDocument test 61: characterSet aliases for "http://example.com/","a-b:c",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    115115PASS createDocument test 62: "http://example.com/","a-b:c",null,null
    116 FAIL createDocument test 62: metadata for "http://example.com/","a-b:c",null assert_equals: expected "about:blank" but got ""
     116PASS createDocument test 62: metadata for "http://example.com/","a-b:c",null
    117117FAIL createDocument test 62: characterSet aliases for "http://example.com/","a-b:c",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    118118PASS createDocument test 63: "http://example.com/","xml",null,null
    119 FAIL createDocument test 63: metadata for "http://example.com/","xml",null assert_equals: expected "about:blank" but got ""
     119PASS createDocument test 63: metadata for "http://example.com/","xml",null
    120120FAIL createDocument test 63: characterSet aliases for "http://example.com/","xml",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    121121PASS createDocument test 64: "http://example.com/","xmlns",null,"NAMESPACE_ERR"
    122122PASS createDocument test 65: "http://example.com/","XMLNS",null,null
    123 FAIL createDocument test 65: metadata for "http://example.com/","XMLNS",null assert_equals: expected "about:blank" but got ""
     123PASS createDocument test 65: metadata for "http://example.com/","XMLNS",null
    124124FAIL createDocument test 65: characterSet aliases for "http://example.com/","XMLNS",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    125125PASS createDocument test 66: "http://example.com/","xmlfoo",null,null
    126 FAIL createDocument test 66: metadata for "http://example.com/","xmlfoo",null assert_equals: expected "about:blank" but got ""
     126PASS createDocument test 66: metadata for "http://example.com/","xmlfoo",null
    127127FAIL createDocument test 66: characterSet aliases for "http://example.com/","xmlfoo",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    128128PASS createDocument test 67: "http://example.com/","xml:foo",null,"NAMESPACE_ERR"
    129129PASS createDocument test 68: "http://example.com/","XML:foo",null,null
    130 FAIL createDocument test 68: metadata for "http://example.com/","XML:foo",null assert_equals: expected "about:blank" but got ""
     130PASS createDocument test 68: metadata for "http://example.com/","XML:foo",null
    131131FAIL createDocument test 68: characterSet aliases for "http://example.com/","XML:foo",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    132132PASS createDocument test 69: "http://example.com/","xmlns:foo",null,"NAMESPACE_ERR"
    133133PASS createDocument test 70: "http://example.com/","XMLNS:foo",null,null
    134 FAIL createDocument test 70: metadata for "http://example.com/","XMLNS:foo",null assert_equals: expected "about:blank" but got ""
     134PASS createDocument test 70: metadata for "http://example.com/","XMLNS:foo",null
    135135FAIL createDocument test 70: characterSet aliases for "http://example.com/","XMLNS:foo",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    136136PASS createDocument test 71: "http://example.com/","xmlfoo:bar",null,null
    137 FAIL createDocument test 71: metadata for "http://example.com/","xmlfoo:bar",null assert_equals: expected "about:blank" but got ""
     137PASS createDocument test 71: metadata for "http://example.com/","xmlfoo:bar",null
    138138FAIL createDocument test 71: characterSet aliases for "http://example.com/","xmlfoo:bar",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    139139PASS createDocument test 72: "http://example.com/","prefix::local",null,"NAMESPACE_ERR"
     
    166166PASS createDocument test 99: "http://example.com/","namespaceURI:\"",null,"INVALID_CHARACTER_ERR"
    167167PASS createDocument test 100: "/","foo",null,null
    168 FAIL createDocument test 100: metadata for "/","foo",null assert_equals: expected "about:blank" but got ""
     168PASS createDocument test 100: metadata for "/","foo",null
    169169FAIL createDocument test 100: characterSet aliases for "/","foo",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    170170PASS createDocument test 101: "/","1foo",null,"INVALID_CHARACTER_ERR"
    171171PASS createDocument test 102: "/","f1oo",null,null
    172 FAIL createDocument test 102: metadata for "/","f1oo",null assert_equals: expected "about:blank" but got ""
     172PASS createDocument test 102: metadata for "/","f1oo",null
    173173FAIL createDocument test 102: characterSet aliases for "/","f1oo",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    174174PASS createDocument test 103: "/","foo1",null,null
    175 FAIL createDocument test 103: metadata for "/","foo1",null assert_equals: expected "about:blank" but got ""
     175PASS createDocument test 103: metadata for "/","foo1",null
    176176FAIL createDocument test 103: characterSet aliases for "/","foo1",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    177177PASS createDocument test 104: "/",":foo",null,"NAMESPACE_ERR"
    178178PASS createDocument test 105: "/","f:oo",null,null
    179 FAIL createDocument test 105: metadata for "/","f:oo",null assert_equals: expected "about:blank" but got ""
     179PASS createDocument test 105: metadata for "/","f:oo",null
    180180FAIL createDocument test 105: characterSet aliases for "/","f:oo",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    181181PASS createDocument test 106: "/","foo:",null,"NAMESPACE_ERR"
    182182PASS createDocument test 107: "/","xml",null,null
    183 FAIL createDocument test 107: metadata for "/","xml",null assert_equals: expected "about:blank" but got ""
     183PASS createDocument test 107: metadata for "/","xml",null
    184184FAIL createDocument test 107: characterSet aliases for "/","xml",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    185185PASS createDocument test 108: "/","xmlns",null,"NAMESPACE_ERR"
    186186PASS createDocument test 109: "/","xmlfoo",null,null
    187 FAIL createDocument test 109: metadata for "/","xmlfoo",null assert_equals: expected "about:blank" but got ""
     187PASS createDocument test 109: metadata for "/","xmlfoo",null
    188188FAIL createDocument test 109: characterSet aliases for "/","xmlfoo",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    189189PASS createDocument test 110: "/","xml:foo",null,"NAMESPACE_ERR"
    190190PASS createDocument test 111: "/","xmlns:foo",null,"NAMESPACE_ERR"
    191191PASS createDocument test 112: "/","xmlfoo:bar",null,null
    192 FAIL createDocument test 112: metadata for "/","xmlfoo:bar",null assert_equals: expected "about:blank" but got ""
     192PASS createDocument test 112: metadata for "/","xmlfoo:bar",null
    193193FAIL createDocument test 112: characterSet aliases for "/","xmlfoo:bar",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    194194PASS createDocument test 113: "http://www.w3.org/XML/1998/namespace","foo",null,null
    195 FAIL createDocument test 113: metadata for "http://www.w3.org/XML/1998/namespace","foo",null assert_equals: expected "about:blank" but got ""
     195PASS createDocument test 113: metadata for "http://www.w3.org/XML/1998/namespace","foo",null
    196196FAIL createDocument test 113: characterSet aliases for "http://www.w3.org/XML/1998/namespace","foo",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    197197PASS createDocument test 114: "http://www.w3.org/XML/1998/namespace","1foo",null,"INVALID_CHARACTER_ERR"
    198198PASS createDocument test 115: "http://www.w3.org/XML/1998/namespace","f1oo",null,null
    199 FAIL createDocument test 115: metadata for "http://www.w3.org/XML/1998/namespace","f1oo",null assert_equals: expected "about:blank" but got ""
     199PASS createDocument test 115: metadata for "http://www.w3.org/XML/1998/namespace","f1oo",null
    200200FAIL createDocument test 115: characterSet aliases for "http://www.w3.org/XML/1998/namespace","f1oo",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    201201PASS createDocument test 116: "http://www.w3.org/XML/1998/namespace","foo1",null,null
    202 FAIL createDocument test 116: metadata for "http://www.w3.org/XML/1998/namespace","foo1",null assert_equals: expected "about:blank" but got ""
     202PASS createDocument test 116: metadata for "http://www.w3.org/XML/1998/namespace","foo1",null
    203203FAIL createDocument test 116: characterSet aliases for "http://www.w3.org/XML/1998/namespace","foo1",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    204204PASS createDocument test 117: "http://www.w3.org/XML/1998/namespace",":foo",null,"NAMESPACE_ERR"
    205205PASS createDocument test 118: "http://www.w3.org/XML/1998/namespace","f:oo",null,null
    206 FAIL createDocument test 118: metadata for "http://www.w3.org/XML/1998/namespace","f:oo",null assert_equals: expected "about:blank" but got ""
     206PASS createDocument test 118: metadata for "http://www.w3.org/XML/1998/namespace","f:oo",null
    207207FAIL createDocument test 118: characterSet aliases for "http://www.w3.org/XML/1998/namespace","f:oo",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    208208PASS createDocument test 119: "http://www.w3.org/XML/1998/namespace","foo:",null,"NAMESPACE_ERR"
    209209PASS createDocument test 120: "http://www.w3.org/XML/1998/namespace","xml",null,null
    210 FAIL createDocument test 120: metadata for "http://www.w3.org/XML/1998/namespace","xml",null assert_equals: expected "about:blank" but got ""
     210PASS createDocument test 120: metadata for "http://www.w3.org/XML/1998/namespace","xml",null
    211211FAIL createDocument test 120: characterSet aliases for "http://www.w3.org/XML/1998/namespace","xml",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    212212PASS createDocument test 121: "http://www.w3.org/XML/1998/namespace","xmlns",null,"NAMESPACE_ERR"
    213213PASS createDocument test 122: "http://www.w3.org/XML/1998/namespace","xmlfoo",null,null
    214 FAIL createDocument test 122: metadata for "http://www.w3.org/XML/1998/namespace","xmlfoo",null assert_equals: expected "about:blank" but got ""
     214PASS createDocument test 122: metadata for "http://www.w3.org/XML/1998/namespace","xmlfoo",null
    215215FAIL createDocument test 122: characterSet aliases for "http://www.w3.org/XML/1998/namespace","xmlfoo",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    216216PASS createDocument test 123: "http://www.w3.org/XML/1998/namespace","xml:foo",null,null
    217 FAIL createDocument test 123: metadata for "http://www.w3.org/XML/1998/namespace","xml:foo",null assert_equals: expected "about:blank" but got ""
     217PASS createDocument test 123: metadata for "http://www.w3.org/XML/1998/namespace","xml:foo",null
    218218FAIL createDocument test 123: characterSet aliases for "http://www.w3.org/XML/1998/namespace","xml:foo",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    219219PASS createDocument test 124: "http://www.w3.org/XML/1998/namespace","xmlns:foo",null,"NAMESPACE_ERR"
    220220PASS createDocument test 125: "http://www.w3.org/XML/1998/namespace","xmlfoo:bar",null,null
    221 FAIL createDocument test 125: metadata for "http://www.w3.org/XML/1998/namespace","xmlfoo:bar",null assert_equals: expected "about:blank" but got ""
     221PASS createDocument test 125: metadata for "http://www.w3.org/XML/1998/namespace","xmlfoo:bar",null
    222222FAIL createDocument test 125: characterSet aliases for "http://www.w3.org/XML/1998/namespace","xmlfoo:bar",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    223223PASS createDocument test 126: "http://www.w3.org/XML/1998/namespaces","xml:foo",null,"NAMESPACE_ERR"
     
    232232PASS createDocument test 135: "http://www.w3.org/2000/xmlns/","xml",null,"NAMESPACE_ERR"
    233233PASS createDocument test 136: "http://www.w3.org/2000/xmlns/","xmlns",null,null
    234 FAIL createDocument test 136: metadata for "http://www.w3.org/2000/xmlns/","xmlns",null assert_equals: expected "about:blank" but got ""
     234PASS createDocument test 136: metadata for "http://www.w3.org/2000/xmlns/","xmlns",null
    235235FAIL createDocument test 136: characterSet aliases for "http://www.w3.org/2000/xmlns/","xmlns",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    236236PASS createDocument test 137: "http://www.w3.org/2000/xmlns/","xmlfoo",null,"NAMESPACE_ERR"
    237237PASS createDocument test 138: "http://www.w3.org/2000/xmlns/","xml:foo",null,"NAMESPACE_ERR"
    238238PASS createDocument test 139: "http://www.w3.org/2000/xmlns/","xmlns:foo",null,null
    239 FAIL createDocument test 139: metadata for "http://www.w3.org/2000/xmlns/","xmlns:foo",null assert_equals: expected "about:blank" but got ""
     239PASS createDocument test 139: metadata for "http://www.w3.org/2000/xmlns/","xmlns:foo",null
    240240FAIL createDocument test 139: characterSet aliases for "http://www.w3.org/2000/xmlns/","xmlns:foo",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    241241PASS createDocument test 140: "http://www.w3.org/2000/xmlns/","xmlfoo:bar",null,"NAMESPACE_ERR"
    242242PASS createDocument test 141: "http://www.w3.org/2000/xmlns/","foo:xmlns",null,"NAMESPACE_ERR"
    243243PASS createDocument test 142: "foo:","foo",null,null
    244 FAIL createDocument test 142: metadata for "foo:","foo",null assert_equals: expected "about:blank" but got ""
     244PASS createDocument test 142: metadata for "foo:","foo",null
    245245FAIL createDocument test 142: characterSet aliases for "foo:","foo",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    246246PASS createDocument test 143: "foo:","1foo",null,"INVALID_CHARACTER_ERR"
    247247PASS createDocument test 144: "foo:","f1oo",null,null
    248 FAIL createDocument test 144: metadata for "foo:","f1oo",null assert_equals: expected "about:blank" but got ""
     248PASS createDocument test 144: metadata for "foo:","f1oo",null
    249249FAIL createDocument test 144: characterSet aliases for "foo:","f1oo",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    250250PASS createDocument test 145: "foo:","foo1",null,null
    251 FAIL createDocument test 145: metadata for "foo:","foo1",null assert_equals: expected "about:blank" but got ""
     251PASS createDocument test 145: metadata for "foo:","foo1",null
    252252FAIL createDocument test 145: characterSet aliases for "foo:","foo1",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    253253PASS createDocument test 146: "foo:",":foo",null,"NAMESPACE_ERR"
    254254PASS createDocument test 147: "foo:","f:oo",null,null
    255 FAIL createDocument test 147: metadata for "foo:","f:oo",null assert_equals: expected "about:blank" but got ""
     255PASS createDocument test 147: metadata for "foo:","f:oo",null
    256256FAIL createDocument test 147: characterSet aliases for "foo:","f:oo",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    257257PASS createDocument test 148: "foo:","foo:",null,"NAMESPACE_ERR"
    258258PASS createDocument test 149: "foo:","xml",null,null
    259 FAIL createDocument test 149: metadata for "foo:","xml",null assert_equals: expected "about:blank" but got ""
     259PASS createDocument test 149: metadata for "foo:","xml",null
    260260FAIL createDocument test 149: characterSet aliases for "foo:","xml",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    261261PASS createDocument test 150: "foo:","xmlns",null,"NAMESPACE_ERR"
    262262PASS createDocument test 151: "foo:","xmlfoo",null,null
    263 FAIL createDocument test 151: metadata for "foo:","xmlfoo",null assert_equals: expected "about:blank" but got ""
     263PASS createDocument test 151: metadata for "foo:","xmlfoo",null
    264264FAIL createDocument test 151: characterSet aliases for "foo:","xmlfoo",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    265265PASS createDocument test 152: "foo:","xml:foo",null,"NAMESPACE_ERR"
    266266PASS createDocument test 153: "foo:","xmlns:foo",null,"NAMESPACE_ERR"
    267267PASS createDocument test 154: "foo:","xmlfoo:bar",null,null
    268 FAIL createDocument test 154: metadata for "foo:","xmlfoo:bar",null assert_equals: expected "about:blank" but got ""
     268PASS createDocument test 154: metadata for "foo:","xmlfoo:bar",null
    269269FAIL createDocument test 154: characterSet aliases for "foo:","xmlfoo:bar",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    270270FAIL createDocument test 155: null,null,false,object "TypeError" assert_throws: function "function () { document.implementation.createDocument(name..." did not throw
    271271PASS createDocument test 156: null,null,null,null
    272 FAIL createDocument test 156: metadata for null,null,null assert_equals: expected "about:blank" but got ""
     272PASS createDocument test 156: metadata for null,null,null
    273273FAIL createDocument test 156: characterSet aliases for null,null,null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    274274PASS createDocument test 157: null,"",null,null
    275 FAIL createDocument test 157: metadata for null,"",null assert_equals: expected "about:blank" but got ""
     275PASS createDocument test 157: metadata for null,"",null
    276276FAIL createDocument test 157: characterSet aliases for null,"",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    277277PASS createDocument test 158: undefined,null,undefined,null
    278 FAIL createDocument test 158: metadata for undefined,null,undefined assert_equals: expected "about:blank" but got ""
     278PASS createDocument test 158: metadata for undefined,null,undefined
    279279FAIL createDocument test 158: characterSet aliases for undefined,null,undefined assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    280280PASS createDocument test 159: undefined,undefined,undefined,null
    281 FAIL createDocument test 159: metadata for undefined,undefined,undefined assert_equals: expected "about:blank" but got ""
     281PASS createDocument test 159: metadata for undefined,undefined,undefined
    282282FAIL createDocument test 159: characterSet aliases for undefined,undefined,undefined assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    283283PASS createDocument test 160: undefined,"",undefined,null
    284 FAIL createDocument test 160: metadata for undefined,"",undefined assert_equals: expected "about:blank" but got ""
     284PASS createDocument test 160: metadata for undefined,"",undefined
    285285FAIL createDocument test 160: characterSet aliases for undefined,"",undefined assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    286286PASS createDocument test 161: "http://example.com/",null,null,null
    287 FAIL createDocument test 161: metadata for "http://example.com/",null,null assert_equals: expected "about:blank" but got ""
     287PASS createDocument test 161: metadata for "http://example.com/",null,null
    288288FAIL createDocument test 161: characterSet aliases for "http://example.com/",null,null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    289289PASS createDocument test 162: "http://example.com/","",null,null
    290 FAIL createDocument test 162: metadata for "http://example.com/","",null assert_equals: expected "about:blank" but got ""
     290PASS createDocument test 162: metadata for "http://example.com/","",null
    291291FAIL createDocument test 162: characterSet aliases for "http://example.com/","",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    292292PASS createDocument test 163: "/",null,null,null
    293 FAIL createDocument test 163: metadata for "/",null,null assert_equals: expected "about:blank" but got ""
     293PASS createDocument test 163: metadata for "/",null,null
    294294FAIL createDocument test 163: characterSet aliases for "/",null,null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    295295PASS createDocument test 164: "/","",null,null
    296 FAIL createDocument test 164: metadata for "/","",null assert_equals: expected "about:blank" but got ""
     296PASS createDocument test 164: metadata for "/","",null
    297297FAIL createDocument test 164: characterSet aliases for "/","",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    298298PASS createDocument test 165: "http://www.w3.org/XML/1998/namespace",null,null,null
    299 FAIL createDocument test 165: metadata for "http://www.w3.org/XML/1998/namespace",null,null assert_equals: expected "about:blank" but got ""
     299PASS createDocument test 165: metadata for "http://www.w3.org/XML/1998/namespace",null,null
    300300FAIL createDocument test 165: characterSet aliases for "http://www.w3.org/XML/1998/namespace",null,null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    301301PASS createDocument test 166: "http://www.w3.org/XML/1998/namespace","",null,null
    302 FAIL createDocument test 166: metadata for "http://www.w3.org/XML/1998/namespace","",null assert_equals: expected "about:blank" but got ""
     302PASS createDocument test 166: metadata for "http://www.w3.org/XML/1998/namespace","",null
    303303FAIL createDocument test 166: characterSet aliases for "http://www.w3.org/XML/1998/namespace","",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    304304PASS createDocument test 167: "http://www.w3.org/2000/xmlns/",null,null,null
    305 FAIL createDocument test 167: metadata for "http://www.w3.org/2000/xmlns/",null,null assert_equals: expected "about:blank" but got ""
     305PASS createDocument test 167: metadata for "http://www.w3.org/2000/xmlns/",null,null
    306306FAIL createDocument test 167: characterSet aliases for "http://www.w3.org/2000/xmlns/",null,null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    307307PASS createDocument test 168: "http://www.w3.org/2000/xmlns/","",null,null
    308 FAIL createDocument test 168: metadata for "http://www.w3.org/2000/xmlns/","",null assert_equals: expected "about:blank" but got ""
     308PASS createDocument test 168: metadata for "http://www.w3.org/2000/xmlns/","",null
    309309FAIL createDocument test 168: characterSet aliases for "http://www.w3.org/2000/xmlns/","",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    310310PASS createDocument test 169: "foo:",null,null,null
    311 FAIL createDocument test 169: metadata for "foo:",null,null assert_equals: expected "about:blank" but got ""
     311PASS createDocument test 169: metadata for "foo:",null,null
    312312FAIL createDocument test 169: characterSet aliases for "foo:",null,null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    313313PASS createDocument test 170: "foo:","",null,null
    314 FAIL createDocument test 170: metadata for "foo:","",null assert_equals: expected "about:blank" but got ""
     314PASS createDocument test 170: metadata for "foo:","",null
    315315FAIL createDocument test 170: characterSet aliases for "foo:","",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    316316PASS createDocument test 171: null,null,DocumentType node,null
    317 FAIL createDocument test 171: metadata for null,null,DocumentType node assert_equals: expected "about:blank" but got ""
     317PASS createDocument test 171: metadata for null,null,DocumentType node
    318318FAIL createDocument test 171: characterSet aliases for null,null,DocumentType node assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    319319PASS createDocument test 172: null,null,DocumentType node,null
    320 FAIL createDocument test 172: metadata for null,null,DocumentType node assert_equals: expected "about:blank" but got ""
     320PASS createDocument test 172: metadata for null,null,DocumentType node
    321321FAIL createDocument test 172: characterSet aliases for null,null,DocumentType node assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    322322PASS createDocument test 173: null,null,DocumentType node,null
    323 FAIL createDocument test 173: metadata for null,null,DocumentType node assert_equals: expected "about:blank" but got ""
     323PASS createDocument test 173: metadata for null,null,DocumentType node
    324324FAIL createDocument test 173: characterSet aliases for null,null,DocumentType node assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    325325PASS createDocument test 174: null,null,DocumentType node,null
    326 FAIL createDocument test 174: metadata for null,null,DocumentType node assert_equals: expected "about:blank" but got ""
     326PASS createDocument test 174: metadata for null,null,DocumentType node
    327327FAIL createDocument test 174: characterSet aliases for null,null,DocumentType node assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    328328PASS createDocument test 175: null,null,DocumentType node,null
    329 FAIL createDocument test 175: metadata for null,null,DocumentType node assert_equals: expected "about:blank" but got ""
     329PASS createDocument test 175: metadata for null,null,DocumentType node
    330330FAIL createDocument test 175: characterSet aliases for null,null,DocumentType node assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    331331PASS createDocument test 176: null,"foo",DocumentType node,null
    332 FAIL createDocument test 176: metadata for null,"foo",DocumentType node assert_equals: expected "about:blank" but got ""
     332PASS createDocument test 176: metadata for null,"foo",DocumentType node
    333333FAIL createDocument test 176: characterSet aliases for null,"foo",DocumentType node assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    334334PASS createDocument test 177: "foo",null,DocumentType node,null
    335 FAIL createDocument test 177: metadata for "foo",null,DocumentType node assert_equals: expected "about:blank" but got ""
     335PASS createDocument test 177: metadata for "foo",null,DocumentType node
    336336FAIL createDocument test 177: characterSet aliases for "foo",null,DocumentType node assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    337337PASS createDocument test 178: "foo","bar",DocumentType node,null
    338 FAIL createDocument test 178: metadata for "foo","bar",DocumentType node assert_equals: expected "about:blank" but got ""
     338PASS createDocument test 178: metadata for "foo","bar",DocumentType node
    339339FAIL createDocument test 178: characterSet aliases for "foo","bar",DocumentType node assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    340340
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/DOMImplementation-createHTMLDocument-expected.txt

    r195336 r195485  
    99PASS createHTMLDocument test 7: "foo\r\rbar baz","foo\r\rbar baz","foo bar baz"
    1010PASS Missing title argument
    11 FAIL createHTMLDocument(): metadata assert_equals: expected "about:blank" but got ""
     11PASS createHTMLDocument(): metadata
    1212FAIL createHTMLDocument(): characterSet aliases assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    1313PASS createHTMLDocument(): URL parsing
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Document-constructor-expected.txt

    r191379 r195485  
    22FAIL new Document(): interfaces assert_false: Should not be an XMLDocument expected false got true
    33PASS new Document(): children
    4 FAIL new Document(): metadata assert_equals: expected "about:blank" but got ""
     4PASS new Document(): metadata
    55FAIL new Document(): characterSet aliases assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined
    66FAIL new Document(): URL parsing assert_equals: expected "http://example.org/?%C3%A4" but got "http://example.org/?ä"
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-properties-expected.txt

    r195336 r195485  
    142142PASS foreignDoc.childNodes[1]
    143143PASS foreignDoc.childNodes[2]
    144 FAIL foreignDoc.URL assert_equals: expected "about:blank" but got ""
     144PASS foreignDoc.URL
    145145PASS foreignDoc.compatMode
    146146PASS foreignDoc.characterSet
     
    154154PASS foreignDoc.parentNode
    155155PASS foreignDoc.ownerDocument
    156 FAIL foreignDoc.documentURI assert_equals: expected (string) "about:blank" but got (object) null
     156PASS foreignDoc.documentURI
    157157PASS foreignDoc.inputEncoding
    158158FAIL foreignDoc.charset assert_equals: expected (string) "UTF-8" but got (undefined) undefined
     
    216216PASS xmlDoc.childNodes[2]
    217217PASS xmlDoc.childNodes[3]
    218 FAIL xmlDoc.URL assert_equals: expected "about:blank" but got ""
     218PASS xmlDoc.URL
    219219PASS xmlDoc.compatMode
    220220PASS xmlDoc.characterSet
     
    228228PASS xmlDoc.parentNode
    229229PASS xmlDoc.ownerDocument
    230 FAIL xmlDoc.documentURI assert_equals: expected (string) "about:blank" but got (object) null
     230PASS xmlDoc.documentURI
    231231PASS xmlDoc.inputEncoding
    232232FAIL xmlDoc.charset assert_equals: expected (string) "UTF-8" but got (undefined) undefined
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/interfaces-expected.txt

    r194580 r195485  
    12601260PASS Document interface: document.implementation.createDocument(null, "", null) must inherit property "implementation" with the proper type (0)
    12611261PASS Document interface: document.implementation.createDocument(null, "", null) must inherit property "URL" with the proper type (1)
    1262 FAIL Document interface: document.implementation.createDocument(null, "", null) must inherit property "documentURI" with the proper type (2) assert_equals: expected "string" but got "object"
     1262PASS Document interface: document.implementation.createDocument(null, "", null) must inherit property "documentURI" with the proper type (2)
    12631263PASS Document interface: document.implementation.createDocument(null, "", null) must inherit property "origin" with the proper type (3)
    12641264PASS Document interface: document.implementation.createDocument(null, "", null) must inherit property "compatMode" with the proper type (4)
  • trunk/Source/WebCore/ChangeLog

    r195483 r195485  
     12016-01-22  Chris Dumez  <cdumez@apple.com>
     2
     3        Document.URL / Document.documentURI should return "about:blank" instead of empty string / null
     4        https://bugs.webkit.org/show_bug.cgi?id=153363
     5        <rdar://problem/22549736>
     6
     7        Reviewed by Ryosuke Niwa.
     8
     9        Document.URL / Document.documentURI should return "about:blank" instead
     10        of empty string / null, as per the specification:
     11        - https://dom.spec.whatwg.org/#dom-document-url
     12        - https://dom.spec.whatwg.org/#concept-document-url
     13
     14        Also, Document.documentURI should be an alias for Document.URL as per:
     15        - https://dom.spec.whatwg.org/#dom-document-url
     16
     17        Firefox matches the specification.
     18
     19        No new tests, already covered by existing W3C tests.
     20
     21        * dom/Document.h:
     22        (WebCore::Document::urlForBindings):
     23        * dom/Document.idl:
     24
    1252016-01-22  Brent Fulgham  <bfulgham@apple.com>
    226
  • trunk/Source/WebCore/dom/Document.h

    r195091 r195485  
    651651    virtual const URL& url() const override final { return m_url; }
    652652    void setURL(const URL&);
     653    const URL& urlForBindings() const { return m_url.isEmpty() ? blankURL() : m_url; }
    653654
    654655    // To understand how these concepts relate to one another, please see the
  • trunk/Source/WebCore/dom/Document.idl

    r195152 r195485  
    8383             [TreatReturnedNullStringAs=Null, TreatNullAs=NullString] attribute DOMString documentURI;
    8484#else
    85     [TreatReturnedNullStringAs=Null] readonly attribute DOMString documentURI;
     85    [ImplementedAs=urlForBindings] readonly attribute DOMString documentURI;
    8686#endif
    8787
     
    166166    readonly attribute DOMString domain;
    167167#endif
    168     readonly attribute DOMString URL;
     168    [ImplementedAs=urlForBindings] readonly attribute DOMString URL;
    169169
    170170    [TreatNullAs=NullString, GetterRaisesException, SetterRaisesException] attribute DOMString cookie;
Note: See TracChangeset for help on using the changeset viewer.