Changeset 195322 in webkit
- Timestamp:
- Jan 19, 2016 4:17:47 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r195281 r195322 1 2016-01-19 Chris Dumez <cdumez@apple.com> 2 3 Document.createDocument() should treat undefined namespace as null 4 https://bugs.webkit.org/show_bug.cgi?id=153252 5 6 Reviewed by Ryosuke Niwa. 7 8 Rebaseline W3C DOM test now that more checks are passing. 9 10 * web-platform-tests/dom/nodes/DOMImplementation-createDocument-expected.txt: 11 1 12 2016-01-19 Ryosuke Niwa <rniwa@webkit.org> 2 13 -
trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/DOMImplementation-createDocument-expected.txt
r191379 r195322 45 45 PASS createDocument test 30: "","f:oo",null,"NAMESPACE_ERR" 46 46 PASS createDocument test 31: "","foo:",null,"NAMESPACE_ERR" 47 FAIL createDocument test 32: undefined,undefined,null,null assert_equals: expected (object) null but got (string) "undefined" 47 PASS createDocument test 32: undefined,undefined,null,null 48 48 FAIL createDocument test 32: metadata for undefined,undefined,null assert_equals: expected "about:blank" but got "" 49 49 FAIL createDocument test 32: characterSet aliases for undefined,undefined,null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined 50 FAIL createDocument test 33: undefined,"foo",null,null assert_equals: expected (object) null but got (string) "undefined" 50 PASS createDocument test 33: undefined,"foo",null,null 51 51 FAIL createDocument test 33: metadata for undefined,"foo",null assert_equals: expected "about:blank" but got "" 52 52 FAIL createDocument test 33: characterSet aliases for undefined,"foo",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined 53 53 PASS createDocument test 34: undefined,"1foo",null,"INVALID_CHARACTER_ERR" 54 FAIL createDocument test 35: undefined,"f1oo",null,null assert_equals: expected (object) null but got (string) "undefined" 54 PASS createDocument test 35: undefined,"f1oo",null,null 55 55 FAIL createDocument test 35: metadata for undefined,"f1oo",null assert_equals: expected "about:blank" but got "" 56 56 FAIL createDocument test 35: characterSet aliases for undefined,"f1oo",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined 57 FAIL createDocument test 36: undefined,"foo1",null,null assert_equals: expected (object) null but got (string) "undefined" 57 PASS createDocument test 36: undefined,"foo1",null,null 58 58 FAIL createDocument test 36: metadata for undefined,"foo1",null assert_equals: expected "about:blank" but got "" 59 59 FAIL createDocument test 36: characterSet aliases for undefined,"foo1",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined 60 60 PASS createDocument test 37: undefined,":foo",null,"NAMESPACE_ERR" 61 FAIL createDocument test 38: undefined,"f:oo",null,"NAMESPACE_ERR" assert_throws: function "function () { document.implementation.createDocument(name..." did not throw 61 PASS createDocument test 38: undefined,"f:oo",null,"NAMESPACE_ERR" 62 62 PASS createDocument test 39: undefined,"foo:",null,"NAMESPACE_ERR" 63 FAIL createDocument test 40: undefined,"xml",null,null assert_equals: expected (object) null but got (string) "undefined" 63 PASS createDocument test 40: undefined,"xml",null,null 64 64 FAIL createDocument test 40: metadata for undefined,"xml",null assert_equals: expected "about:blank" but got "" 65 65 FAIL createDocument test 40: characterSet aliases for undefined,"xml",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined 66 66 PASS createDocument test 41: undefined,"xmlns",null,"NAMESPACE_ERR" 67 FAIL createDocument test 42: undefined,"xmlfoo",null,null assert_equals: expected (object) null but got (string) "undefined" 67 PASS createDocument test 42: undefined,"xmlfoo",null,null 68 68 FAIL createDocument test 42: metadata for undefined,"xmlfoo",null assert_equals: expected "about:blank" but got "" 69 69 FAIL createDocument test 42: characterSet aliases for undefined,"xmlfoo",null assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined 70 70 PASS createDocument test 43: undefined,"xml:foo",null,"NAMESPACE_ERR" 71 71 PASS createDocument test 44: undefined,"xmlns:foo",null,"NAMESPACE_ERR" 72 FAIL createDocument test 45: undefined,"xmlfoo:bar",null,"NAMESPACE_ERR" assert_throws: function "function () { document.implementation.createDocument(name..." did not throw 72 PASS createDocument test 45: undefined,"xmlfoo:bar",null,"NAMESPACE_ERR" 73 73 PASS createDocument test 46: "http://example.com/","foo",null,null 74 74 FAIL createDocument test 46: metadata for "http://example.com/","foo",null assert_equals: expected "about:blank" but got "" … … 278 278 FAIL createDocument test 158: metadata for undefined,null,undefined assert_equals: expected "about:blank" but got "" 279 279 FAIL createDocument test 158: characterSet aliases for undefined,null,undefined assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined 280 FAIL createDocument test 159: undefined,undefined,undefined,null assert_equals: expected (object) null but got (string) "undefined" 280 PASS createDocument test 159: undefined,undefined,undefined,null 281 281 FAIL createDocument test 159: metadata for undefined,undefined,undefined assert_equals: expected "about:blank" but got "" 282 282 FAIL createDocument test 159: characterSet aliases for undefined,undefined,undefined assert_equals: charset expected (string) "UTF-8" but got (undefined) undefined -
trunk/Source/WebCore/ChangeLog
r195317 r195322 1 2016-01-19 Chris Dumez <cdumez@apple.com> 2 3 DOMImplementation.createDocument() should treat undefined namespace as null 4 https://bugs.webkit.org/show_bug.cgi?id=153252 5 6 Reviewed by Ryosuke Niwa. 7 8 DOMImplementation.createDocument() should treat undefined namespace as null as 9 the DOMString parameter is nullable: 10 https://dom.spec.whatwg.org/#domimplementation 11 12 Firefox behaves according to the specification, Chrome does not. 13 14 No new tests, already covered by existing test. 15 16 * dom/DOMImplementation.idl: 17 1 18 2016-01-19 Enrica Casucci <enrica@apple.com> 2 19 -
trunk/Source/WebCore/dom/DOMImplementation.idl
r189881 r195322 34 34 [TreatNullAs=NullString, TreatUndefinedAs=NullString, Default=Undefined] optional DOMString publicId, 35 35 [TreatNullAs=NullString, TreatUndefinedAs=NullString, Default=Undefined] optional DOMString systemId); 36 [ObjCLegacyUnnamedParameters, RaisesException, NewObject] Document createDocument([TreatNullAs=NullString, Default=Undefined] optional DOMString namespaceURI,36 [ObjCLegacyUnnamedParameters, RaisesException, NewObject] Document createDocument([TreatNullAs=NullString, TreatUndefinedAs=NullString, Default=Undefined] optional DOMString namespaceURI, 37 37 [TreatNullAs=NullString, Default=Undefined] optional DOMString qualifiedName, 38 38 [TreatNullAs=NullString, Default=Undefined] optional DocumentType doctype);
Note: See TracChangeset
for help on using the changeset viewer.