Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTMLSelectElement doesn't support selectedOptions property #177

Open
AndrewKushnir opened this issue Nov 24, 2021 · 0 comments
Open

HTMLSelectElement doesn't support selectedOptions property #177

AndrewKushnir opened this issue Nov 24, 2021 · 0 comments

Comments

@AndrewKushnir
Copy link

The selectedOptions property is not supported on the select elements in Domino based on the definition here:

domino/lib/htmlelts.js

Lines 959 to 979 in 12a5f67

define({
tag: 'select',
ctor: function HTMLSelectElement(doc, localName, prefix) {
HTMLFormElement.call(this, doc, localName, prefix);
},
props: {
form: formAssociatedProps.form,
options: { get: function() {
return this.getElementsByTagName('option');
}}
},
attributes: {
autocomplete: String, // It's complicated
name: String,
disabled: Boolean,
autofocus: Boolean,
multiple: Boolean,
required: Boolean,
size: {type: "unsigned long", default: 0}
}
});

The selectedOptions property is generally supported in all modern browsers and it'd be great to have a support in Domino as well. An absence of this support requires including extra code (like this one) into app bundles, thus increasing it unnecessarily.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant