mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 10:37:17 +02:00
LibWeb: Return DOMException instead of crashing when setting attributes
This commit is contained in:
committed by
Andreas Kling
parent
6891676fce
commit
5d3b7a5ecc
Notes:
sideshowbarker
2024-07-16 19:42:24 +09:00
Author: https://github.com/PrestonLTaylor Commit: https://github.com/SerenityOS/serenity/commit/5d3b7a5ecc Pull-request: https://github.com/SerenityOS/serenity/pull/19044
@@ -58,7 +58,7 @@ public:
|
||||
|
||||
DeprecatedString type() const;
|
||||
TypeAttributeState type_state() const { return m_type; }
|
||||
void set_type(DeprecatedString const&);
|
||||
WebIDL::ExceptionOr<void> set_type(DeprecatedString const&);
|
||||
|
||||
DeprecatedString default_value() const { return attribute(HTML::AttributeNames::value); }
|
||||
DeprecatedString name() const { return attribute(HTML::AttributeNames::name); }
|
||||
|
||||
Reference in New Issue
Block a user