mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-09 04:39:03 +02:00
MozReview-Commit-ID: 1KVr5OLKI3 --HG-- rename : testing/web-platform/tests/uievents/ClickFakeEvent.nondocument.html => testing/web-platform/tests/dom/events/Event-dispatch-detached-click.html rename : testing/web-platform/tests/uievents/order-of-events/init-event-while-dispatching.html => testing/web-platform/tests/dom/events/Event-init-while-dispatching.html rename : testing/web-platform/tests/uievents/constructors/constructors.html => testing/web-platform/tests/dom/events/Event-subclasses-constructors.html rename : testing/web-platform/tests/DOM-parsing/createContextualFragment.html => testing/web-platform/tests/domparsing/createContextualFragment.html rename : testing/web-platform/tests/DOM-parsing/innerhtml-01.xhtml => testing/web-platform/tests/domparsing/innerhtml-01.xhtml rename : testing/web-platform/tests/DOM-parsing/innerhtml-03.xhtml => testing/web-platform/tests/domparsing/innerhtml-03.xhtml rename : testing/web-platform/tests/DOM-parsing/innerhtml-04.html => testing/web-platform/tests/domparsing/innerhtml-04.html rename : testing/web-platform/tests/DOM-parsing/innerhtml-05.xhtml => testing/web-platform/tests/domparsing/innerhtml-05.xhtml rename : testing/web-platform/tests/DOM-parsing/innerhtml-07.html => testing/web-platform/tests/domparsing/innerhtml-07.html rename : testing/web-platform/tests/DOM-parsing/insert_adjacent_html.html => testing/web-platform/tests/domparsing/insert_adjacent_html.html rename : testing/web-platform/tests/DOM-parsing/insert_adjacent_html.js => testing/web-platform/tests/domparsing/insert_adjacent_html.js rename : testing/web-platform/tests/DOM-parsing/insert_adjacent_html.xhtml => testing/web-platform/tests/domparsing/insert_adjacent_html.xhtml rename : testing/web-platform/tests/DOM-parsing/outerhtml-01.html => testing/web-platform/tests/domparsing/outerhtml-01.html rename : testing/web-platform/tests/DOM-parsing/outerhtml-02.html => testing/web-platform/tests/domparsing/outerhtml-02.html rename : testing/web-platform/tests/DOM-parsing/xml-serialization.xhtml => testing/web-platform/tests/domparsing/xml-serialization.xhtml
28 lines
1.1 KiB
HTML
28 lines
1.1 KiB
HTML
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<title>innerHTML in XHTML: getting while the document is in an invalid state</title>
|
|
<link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com"/>
|
|
<link rel="help" href="https://w3c.github.io/DOM-Parsing/#widl-Element-innerHTML"/>
|
|
<link rel="help" href="http://www.whatwg.org/html5/#xml-fragment-serialization-algorithm"/>
|
|
<link rel="help" href="http://www.whatwg.org/html5/#document.title"/>
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
</head>
|
|
<body>
|
|
<div id="log"></div>
|
|
<script>
|
|
test(function() {
|
|
document.documentElement.appendChild(document.createElement("test:test"));
|
|
assert_throws("INVALID_STATE_ERR", function() {
|
|
document.documentElement.innerHTML;
|
|
}, "getting element with \":\" in its local name");
|
|
});
|
|
test(function() {
|
|
document.title = "\f";
|
|
assert_throws("INVALID_STATE_ERR", function() {
|
|
document.getElementsByTagName("title")[0].innerHTML;
|
|
}, "Getting a Text node whose data contains characters that are not matched by the XML Char production");
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|