mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibWeb: Implement Element.outerHTML
This piggybacks on the same fragment serialization code that innerHTML uses, but instead of constructing an imaginary parent element like the spec asks us to, we just add a separate serialization mode that includes the context element in the serialized markup. This makes the image carousel on https://utah.edu/ show up :^)
This commit is contained in:
8
Tests/LibWeb/Text/input/HTML/outerHTML.html
Normal file
8
Tests/LibWeb/Text/input/HTML/outerHTML.html
Normal file
@@ -0,0 +1,8 @@
|
||||
<script src="../include.js"></script>
|
||||
<div id="foo"><b>hello students</b></div>
|
||||
<script>
|
||||
test(() => {
|
||||
println("outerHTML: " + foo.outerHTML)
|
||||
println("innerHTML: " + foo.innerHTML)
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user