mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibWeb: Expose HTMLSelectElement::options
Use the stub implementation of HTMLOptionsCollection to expose the `option` children of `select` elements. This fixes a JS error on openstreetmap.org, which occured when JQuery code tried to access `options.length`: https://github.com/jquery/jquery/blob/main/src/attributes/val.js#L121
This commit is contained in:
parent
624527f15e
commit
deef2911e9
Notes:
sideshowbarker
2024-07-17 17:19:42 +09:00
Author: https://github.com/skyrising
Commit: deef2911e9
Pull-request: https://github.com/SerenityOS/serenity/pull/13071
3 changed files with 24 additions and 0 deletions
|
@ -1,9 +1,11 @@
|
|||
#import <HTML/HTMLElement.idl>
|
||||
#import <HTML/HTMLOptionsCollection.idl>
|
||||
|
||||
interface HTMLSelectElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute boolean disabled;
|
||||
[Reflect] attribute boolean multiple;
|
||||
[Reflect] attribute boolean required;
|
||||
[SameObject] readonly attribute HTMLOptionsCollection options;
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue