mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-03 23:52:08 +00:00
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 :^)
8 lines
218 B
HTML
8 lines
218 B
HTML
<script src="../include.js"></script>
|
|
<div id="foo"><b>hello students</b></div>
|
|
<script>
|
|
test(() => {
|
|
println("outerHTML: " + foo.outerHTML)
|
|
println("innerHTML: " + foo.innerHTML)
|
|
});
|
|
</script>
|