mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibWeb: Implement the HTMLOutputElement.htmlFor
attribute
This returns a DOMTokenList that reflects the `for` attribute.
This commit is contained in:
parent
acc1fa3c62
commit
3dc86747f0
Notes:
sideshowbarker
2024-07-17 03:03:37 +09:00
Author: https://github.com/tcl3
Commit: 3dc86747f0
Pull-request: https://github.com/SerenityOS/serenity/pull/24344
Reviewed-by: https://github.com/shannonbooth ✅
5 changed files with 61 additions and 1 deletions
|
@ -23,6 +23,8 @@ class HTMLOutputElement final
|
|||
public:
|
||||
virtual ~HTMLOutputElement() override;
|
||||
|
||||
JS::NonnullGCPtr<DOM::DOMTokenList> html_for();
|
||||
|
||||
String const& type() const
|
||||
{
|
||||
static String const output = "output"_string;
|
||||
|
@ -58,6 +60,11 @@ private:
|
|||
HTMLOutputElement(DOM::Document&, DOM::QualifiedName);
|
||||
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
virtual void visit_edges(Cell::Visitor& visitor) override;
|
||||
|
||||
virtual void form_associated_element_attribute_changed(FlyString const& name, Optional<String> const& value) override;
|
||||
|
||||
JS::GCPtr<DOM::DOMTokenList> m_html_for;
|
||||
|
||||
Optional<String> m_default_value_override {};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue