You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
577 B
20 lines
577 B
"use strict";
|
|
|
|
const HTMLCollection = require("../generated/HTMLCollection");
|
|
const HTMLElementImpl = require("./HTMLElement-impl").implementation;
|
|
|
|
const { descendantsByLocalName } = require("../helpers/traversal");
|
|
|
|
class HTMLDataListElementImpl extends HTMLElementImpl {
|
|
// https://html.spec.whatwg.org/multipage/form-elements.html#dom-datalist-options
|
|
get options() {
|
|
return HTMLCollection.createImpl([], {
|
|
element: this,
|
|
query: () => descendantsByLocalName(this, "option")
|
|
});
|
|
}
|
|
}
|
|
|
|
module.exports = {
|
|
implementation: HTMLDataListElementImpl
|
|
};
|
|
|