mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibWeb: Implement HTMLOptionElement.label more correctly
This shouldn't just be a simple reflection of the label attribute. It also needs fallback to the HTMLOptionElement.text property if the label attribute is absent.
This commit is contained in:
parent
f7993495bd
commit
4c2d4cdf50
Notes:
github-actions[bot]
2024-11-15 11:55:47 +00:00
Author: https://github.com/awesomekling
Commit: 4c2d4cdf50
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2355
4 changed files with 25 additions and 5 deletions
|
@ -29,6 +29,9 @@ public:
|
|||
String text() const;
|
||||
void set_text(String const&);
|
||||
|
||||
[[nodiscard]] String label() const;
|
||||
void set_label(String const&);
|
||||
|
||||
int index() const;
|
||||
|
||||
bool disabled() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue