Bug 682886 - menuitem should be serialized as a container, r=sicking

This commit is contained in:
Olli Pettay 2011-09-20 08:50:43 +03:00
parent 37514e6e95
commit f3846553dc
3 changed files with 35 additions and 1 deletions

View File

@ -277,6 +277,7 @@ _TEST_FILES = \
test_checked.html \
test_bug677658.html \
test_bug677463.html \
test_bug682886.html \
file_fullscreen-api.html \
file_fullscreen-api-keys.html \
test_fullscreen-api.html \

View File

@ -0,0 +1,33 @@
<!DOCTYPE HTML>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=682886
-->
<head>
<title>Test for Bug 682886</title>
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=682886">Mozilla Bug 682886</a>
<p id="display"></p>
<div id="content" style="display: none">
</div>
<pre id="test">
<script type="application/javascript">
/** Test for Bug 682886 **/
var m = document.createElement("menu");
var s = "<menuitem>foo</menuitem>";
m.innerHTML = s;
is(m.innerHTML, s, "Wrong menuitem serialization!");
</script>
</pre>
</body>
</html>

View File

@ -862,7 +862,7 @@ const nsHTMLElement gHTMLElements[] = {
/*rootnodes,endrootnodes*/ &gRootTags,&gRootTags,
/*autoclose starttags and endtags*/ 0,0,0,0,
/*parent,incl,exclgroups*/ kFlowEntity, kNone, kNone,
/*special props, prop-range*/ kNonContainer,kDefaultPropRange,
/*special props, prop-range*/ 0,kDefaultPropRange,
/*special parents,kids*/ 0,0,
},
{