Index: LayoutTests/fast/parser/stray-menuitem.html |
diff --git a/LayoutTests/fast/parser/stray-menuitem.html b/LayoutTests/fast/parser/stray-menuitem.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4e551d86ca86b84474965032a485933f424b9af2 |
--- /dev/null |
+++ b/LayoutTests/fast/parser/stray-menuitem.html |
@@ -0,0 +1,19 @@ |
+<!DOCTYPE html> |
tkent
2014/08/11 01:58:32
This test doesn't make sense. This test passes wi
pals
2014/08/11 09:11:58
Done. Made the necessary changes to check no endTa
|
+<html> |
+ <head> |
+ <title>Stray menuitem elements are not dropped when parsing</title> |
+ <script> |
+ if (window.testRunner) |
+ testRunner.dumpAsText(); |
+ |
+ window.onload = function() { |
+ var len = document.getElementsByTagName("menuitem").length; |
+ document.getElementsByTagName("p")[0].innerHTML = (len == 1) ? "PASS" : "FAIL"; |
+ }; |
+ </script> |
+ </head> |
+ <body> |
+ <p>This test requires Javascript.</p> |
+ <menuitem> |
+ </body> |
+</html> |