Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(331)

Side by Side Diff: LayoutTests/fast/dom/setAttributeNS-namespace-errors-expected.txt

Issue 122083002: createElementNS handles element name 'xmlns' correctly. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressed feedback. Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 Test that calling setAttributeNS() throws an error when http://www.w3.org/TR/dom /#dom-element-setattributens says it should.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 PASS elem.setAttributeNS(null, 'foo:bar', 'baz') threw exception NamespaceError: Failed to execute 'setAttributeNS' on 'Element': '' is an invalid namespace for attributes..
7 PASS elem.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:abc', 'foo ') did not throw exception.
8 PASS elem.setAttributeNS('http://www.w3.org/not-XML/1998/namespace', 'xml:abc', 'foo') threw exception NamespaceError: Failed to execute 'setAttributeNS' on 'El ement': 'http://www.w3.org/not-XML/1998/namespace' is an invalid namespace for a ttributes..
9 PASS elem.setAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns', 'http://wwww. example.org') did not throw exception.
10 PASS elem.setAttributeNS('http://www.w3.org/2000/not-xmlns/', 'xmlns', 'http://w www.example.org') threw exception NamespaceError: Failed to execute 'setAttribut eNS' on 'Element': 'http://www.w3.org/2000/not-xmlns/' is an invalid namespace f or attributes..
11 PASS elem.setAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns:abc', 'http://w www.example.org') did not throw exception.
12 PASS elem.setAttributeNS('http://www.w3.org/2000/not-xmlns/', 'xmlns:abc', 'http ://wwww.example.org') threw exception NamespaceError: Failed to execute 'setAttr ibuteNS' on 'Element': 'http://www.w3.org/2000/not-xmlns/' is an invalid namespa ce for attributes..
13 PASS elem.setAttributeNS('http://www.w3.org/2000/xmlns/', 'badprefix:xmlns', 'ht tp://wwww.example.org') threw exception NamespaceError: Failed to execute 'setAt tributeNS' on 'Element': 'http://www.w3.org/2000/xmlns/' is an invalid namespace for attributes..
14 PASS elem.setAttributeNS('http://www.w3.org/2000/xmlns/', 'notxmlns', 'http://ww ww.example.org') threw exception NamespaceError: Failed to execute 'setAttribute NS' on 'Element': 'http://www.w3.org/2000/xmlns/' is an invalid namespace for at tributes..
15 PASS successfullyParsed is true
16
17 TEST COMPLETE
18
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698