OLD | NEW |
1 This tests the handling of the link.crossOrigin attribute | 1 This tests the handling of the link.crossOrigin attribute |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 PASS 'crossOrigin' in link is true | 6 PASS 'crossOrigin' in link is true |
7 PASS link.crossOrigin is "" | 7 PASS link.crossOrigin is null |
8 PASS link.setAttribute('crossorigin', ''); link.crossOrigin is "anonymous" | 8 PASS link.setAttribute('crossorigin', ''); link.crossOrigin is "anonymous" |
9 PASS link.removeAttribute('crossorigin'); link.crossOrigin is "" | 9 PASS link.removeAttribute('crossorigin'); link.crossOrigin is null |
10 PASS link.setAttribute('crossorigin', 'foo'); link.crossOrigin is "anonymous" | 10 PASS link.setAttribute('crossorigin', 'foo'); link.crossOrigin is "anonymous" |
11 PASS link.setAttribute('crossorigin', 'ANONYMOUS'); link.crossOrigin is "anonymo
us" | 11 PASS link.setAttribute('crossorigin', 'ANONYMOUS'); link.crossOrigin is "anonymo
us" |
12 PASS link.setAttribute('crossorigin', 'use-credentials'); link.crossOrigin is "u
se-credentials" | 12 PASS link.setAttribute('crossorigin', 'use-credentials'); link.crossOrigin is "u
se-credentials" |
13 PASS link.crossOrigin = ''; link.getAttribute('crossorigin') is "" | 13 PASS link.crossOrigin = ''; link.getAttribute('crossorigin') is "" |
14 PASS link.crossOrigin = 'foo'; link.getAttribute('crossorigin') is "foo" | 14 PASS link.crossOrigin = 'foo'; link.getAttribute('crossorigin') is "foo" |
15 PASS link.crossOrigin = null; link.getAttribute('crossorigin') is "null" | 15 PASS link.crossOrigin = null; link.hasAttribute('crossorigin') is false |
16 PASS link.crossOrigin = 'ANONYMOUS'; link.getAttribute('crossorigin') is "ANONYM
OUS" | 16 PASS link.crossOrigin = 'ANONYMOUS'; link.getAttribute('crossorigin') is "ANONYM
OUS" |
17 PASS link.crossOrigin = 'use-credentials'; link.getAttribute('crossorigin') is "
use-credentials" | 17 PASS link.crossOrigin = 'use-credentials'; link.getAttribute('crossorigin') is "
use-credentials" |
18 PASS successfullyParsed is true | 18 PASS successfullyParsed is true |
19 | 19 |
20 TEST COMPLETE | 20 TEST COMPLETE |
21 | 21 |
OLD | NEW |