| 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 NOT support mime-type = "text/xsl" | 25 6. Should THROW exception for mime-type = "text/xsl" |
| 26 FAIL | 26 PASS |
| 27 |
| 28 7. Should THROW exception for mime-type = "text/dummy+xml" |
| 29 PASS |
| 30 |
| 31 8. Should THROW exception for mime-type = "text/XML" |
| 32 PASS |
| 33 |
| 34 9. Should THROW exception for mime-type = "TEXT/html" |
| 35 PASS |
| 27 | 36 |
| 28 | 37 |
| OLD | NEW |