mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 14:19:48 +00:00
LibWeb: Move contentEditable from Element to HTMLElement
HTMLElement is the only interface that includes ElementContentEditable in the HTML specification. This makes sense, as Element is also a base class for elements in other specifications such as SVG, which definitely shouldn't be editable. Also adds a test for the attribute based on what Andreas did in the video that added it.
This commit is contained in:
parent
64ba289cfb
commit
bc15144972
Notes:
sideshowbarker
2024-07-19 04:22:05 +09:00
Author: https://github.com/Lubrsi
Commit: bc15144972
Pull-request: https://github.com/SerenityOS/serenity/pull/2975
7 changed files with 80 additions and 71 deletions
|
@ -8,7 +8,5 @@ interface Element : Node {
|
|||
attribute DOMString innerHTML;
|
||||
[Reflect] attribute DOMString id;
|
||||
[Reflect=class] attribute DOMString className;
|
||||
|
||||
attribute DOMString contentEditable;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue