mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibWeb: Start implementing <input type=text> using a shadow DOM
Text <input> fields will now generate a basic shadow DOM and attach it to the input element. The shadow DOM contains a <div> with some inline style, and an always- editable text node inside it. Accessing the "value" attribute on such an input element will get/set the value from that text node. This is really cool, although not super stable since HTML editing is not super stable. But it's a start! :^)
This commit is contained in:
Notes:
sideshowbarker
2024-07-18 22:26:43 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/29a2aac89ab
@@ -11,6 +11,8 @@ interface HTMLInputElement : HTMLElement {
|
||||
[Reflect=dirname] attribute DOMString dirName;
|
||||
[Reflect=value] attribute DOMString defaultValue;
|
||||
|
||||
[LegacyNullToEmptyString] attribute DOMString value;
|
||||
|
||||
attribute boolean checked;
|
||||
|
||||
[Reflect] attribute boolean disabled;
|
||||
|
||||
Reference in New Issue
Block a user