OLD | NEW |
1 This tests DOMParser supports creating Document for HTML content with mime-type
"text/html". | 1 This tests DOMParser supports creating Document for HTML content with mime-type
"text/html". |
2 | 2 |
3 1. Should support mime-type = "text/html" | 3 1. Should support mime-type = "text/html" |
4 HTML content: | 4 HTML content: |
5 Scripts must be disabled for the document created using DOMParser.parseFromStrin
g() | 5 Scripts must be disabled for the document created using DOMParser.parseFromStrin
g() |
6 Sample text content | 6 Sample text content |
7 PASS | 7 PASS |
8 | 8 |
9 2. Should support mime-type = "text/xml" | 9 2. Should support mime-type = "text/xml" |
10 Root element: root | 10 Root element: root |
11 PASS | 11 PASS |
12 | 12 |
13 3. Should support mime-type = "application/xml" | 13 3. Should support mime-type = "application/xml" |
14 Root element: root | 14 Root element: root |
15 PASS | 15 PASS |
16 | 16 |
17 4. Should support mime-type = "application/xhtml+xml" | 17 4. Should support mime-type = "application/xhtml+xml" |
18 Root element: html | 18 Root element: html |
19 PASS | 19 PASS |
20 | 20 |
21 5. Should support mime-type = "image/svg+xml" | 21 5. Should support mime-type = "image/svg+xml" |
22 Root element: svg | 22 Root element: svg |
23 PASS | 23 PASS |
24 | 24 |
25 6. Should THROW exception for mime-type = "text/xsl" | 25 6. Should THROW exception for mime-type = "text/xsl" |
26 TypeError: Failed to execute 'parseFromString' on 'DOMParser': parameter 2 ('tex
t/xsl') is not a valid enum value. | 26 TypeError: Failed to execute 'parseFromString' on 'DOMParser': The provided valu
e 'text/xsl' is not a valid enum value. |
27 PASS | 27 PASS |
28 | 28 |
29 7. Should THROW exception for mime-type = "text/dummy+xml" | 29 7. Should THROW exception for mime-type = "text/dummy+xml" |
30 TypeError: Failed to execute 'parseFromString' on 'DOMParser': parameter 2 ('tex
t/dummy+xml') is not a valid enum value. | 30 TypeError: Failed to execute 'parseFromString' on 'DOMParser': The provided valu
e 'text/dummy+xml' is not a valid enum value. |
31 PASS | 31 PASS |
32 | 32 |
33 8. Should THROW exception for mime-type = "text/XML" | 33 8. Should THROW exception for mime-type = "text/XML" |
34 TypeError: Failed to execute 'parseFromString' on 'DOMParser': parameter 2 ('tex
t/XML') is not a valid enum value. | 34 TypeError: Failed to execute 'parseFromString' on 'DOMParser': The provided valu
e 'text/XML' is not a valid enum value. |
35 PASS | 35 PASS |
36 | 36 |
37 9. Should THROW exception for mime-type = "TEXT/html" | 37 9. Should THROW exception for mime-type = "TEXT/html" |
38 TypeError: Failed to execute 'parseFromString' on 'DOMParser': parameter 2 ('TEX
T/html') is not a valid enum value. | 38 TypeError: Failed to execute 'parseFromString' on 'DOMParser': The provided valu
e 'TEXT/html' is not a valid enum value. |
39 PASS | 39 PASS |
40 | 40 |
41 | 41 |
OLD | NEW |