Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!doctype html> | |
| 2 <script src="../../resources/testharness.js"></script> | |
| 3 <script src="../../resources/testharnessreport.js"></script> | |
| 4 <script> | |
| 5 'use strict'; | |
| 6 | |
| 7 test(() => { | |
| 8 const parser = new DOMParser(); | |
| 9 const input = '<?xml version="1.1" encoding="UTF-16"?>'; | |
| 10 parser.parseFromString(input, 'application/xhtml+xml'); | |
| 11 }, 'Parsing XML w/ invalid ver should not crash'); | |
| 12 </script> | |
| OLD | NEW |