Index: third_party/WebKit/LayoutTests/fast/parser/invalid-xml-ver.html |
diff --git a/third_party/WebKit/LayoutTests/fast/parser/invalid-xml-ver.html b/third_party/WebKit/LayoutTests/fast/parser/invalid-xml-ver.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..95b42efe8df3938b907a8c47415147f614332fe6 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/parser/invalid-xml-ver.html |
@@ -0,0 +1,12 @@ |
+<!doctype html> |
+<script src="../../resources/testharness.js"></script> |
+<script src="../../resources/testharnessreport.js"></script> |
+<script> |
+'use strict'; |
+ |
+test(() => { |
+ const parser = new DOMParser(); |
+ const input = '<?xml version="1.1" encoding="UTF-16"?>'; |
+ parser.parseFromString(input, 'application/xhtml+xml'); |
+}, 'Parsing XML w/ invalid ver should not crash'); |
+</script> |