blob: 76783026f02e26f9409d8e61aecbe8bd5a005900 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<div id="containerWithIsindex" style="display:none"><isindex></div>
<form><template id="templateWithIsindex"><isindex></template></form>
<form><template id="templateWithFormInsideForm"><form><input></form></template></form>
<template id="templateWithNestedForms"><form><form></form></form></template>
<template id="templateWithIsindexInsideForm"><form><isindex></form></template>
<script src="../../../resources/js-test-pre.js"></script>
<script>
shouldBe("templateWithIsindex.innerHTML", "containerWithIsindex.innerHTML");
shouldBe("templateWithFormInsideForm.innerHTML", "'<form><input></form>'");
shouldBe("formInsideTemplate = templateWithFormInsideForm.content.firstChild; formInsideTemplate.localName", "'form'");
shouldBe("inputInsideTemplate = templateWithFormInsideForm.content.querySelector('input'); inputInsideTemplate.form", "formInsideTemplate");
shouldBe("formInsideTemplate.elements[0]", "inputInsideTemplate");
shouldBe("templateWithNestedForms.innerHTML", "'<form><form></form></form>'")
shouldBe("templateWithIsindexInsideForm.innerHTML", "'<form>' + containerWithIsindex.innerHTML + '</form>'")
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>
</html>