mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-24 09:52:31 +00:00
Fixes one WPT test: "Frameset followed by body inside the html element" http://wpt.live/html/dom/documents/dom-tree-accessors/Document.body.html
17 lines
661 B
HTML
17 lines
661 B
HTML
<!DOCTYPE html>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
var doc = document.implementation.createHTMLDocument("");
|
|
doc.removeChild(doc.documentElement);
|
|
var html = doc.appendChild(doc.createElement("html"));
|
|
html.appendChild(doc.createElement("body"));
|
|
html.appendChild(doc.createElement("frameset"));
|
|
println(`BODY == ${doc.body.tagName}`);
|
|
html.firstChild.remove();
|
|
html.firstChild.remove();
|
|
html.appendChild(doc.createElement("frameset"));
|
|
html.appendChild(doc.createElement("body"));
|
|
println(`FRAMESET == ${doc.body.tagName}`);
|
|
});
|
|
</script>
|