mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
LibWeb: Implement getting and setting element.innerHTML
Getting the innerHTML property will recurse through the subtree inside the element and serialize it into a string as it goes. Setting it will parse the set value as an HTML fragment. It will then remove all current children of the element and replace them with all the children inside the parsed fragment. Setting element.innerHTML will currently force a complete rebuild of the document's layout tree. This is pretty neat! :^)
This commit is contained in:
parent
632cc53e2c
commit
68b04d5c78
Notes:
sideshowbarker
2024-07-19 08:07:33 +09:00
Author: https://github.com/awesomekling
Commit: 68b04d5c78
11 changed files with 192 additions and 5 deletions
|
@ -45,6 +45,7 @@ namespace Bindings {
|
|||
|
||||
class CanvasRenderingContext2DWrapper;
|
||||
class DocumentWrapper;
|
||||
class ElementWrapper;
|
||||
class EventWrapper;
|
||||
class EventListenerWrapper;
|
||||
class EventTargetWrapper;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue