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:
Andreas Kling 2024-04-09 14:44:58 +02:00 committed by Tim Flynn
commit 870a954e11
Notes: sideshowbarker 2024-07-18 02:13:10 +09:00
9 changed files with 120 additions and 75 deletions

View file

@ -0,0 +1,2 @@
hello students outerHTML: <div id="foo"><b>hello students</b></div>
innerHTML: <b>hello students</b>