diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2019-12-16 18:10:12 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-16 18:10:12 -0500 |
commit | d2051946181f62de6ec8ade4a0a73fc971c74923 (patch) | |
tree | 83802d21f15188eb5d3f20ee7b04c9b8c7360e56 /components/script/dom/request.rs | |
parent | 846aa5b56ac140c78de65e7223217c4c45550a89 (diff) | |
parent | ef8496c7bcceda19b72baa8cd856e26e2fc8a3ff (diff) | |
download | servo-d2051946181f62de6ec8ade4a0a73fc971c74923.tar.gz servo-d2051946181f62de6ec8ade4a0a73fc971c74923.zip |
Auto merge of #25070 - cagandhi:named-form-getter, r=jdm
Named form getter
This PR contains changes related to adding named getter in Servo for getting the list of all meaningful property names for a HTMLFormElement object, and getting the value of a specific property name. The following changes have been made:
* uncomment the [named getter](https://github.com/servo/servo/blob/f63b404e0cbf30380c4043700861110d06e548bb/components/script/dom/webidls/HTMLFormElement.webidl#L30) from HTMLFormElement.webidl
* add the missing `NamedGetter` and `SupportedPropertyNames` methods to [HTMLFormElement](https://github.com/servo/servo/blob/f63b404e0cbf30380c4043700861110d06e548bb/components/script/dom/htmlformelement.rs#L113)
* implement `SupportedPropertyNames` according to [the specification](https://html.spec.whatwg.org/multipage/forms.html#the-form-element:supported-property-names):
* create an enum to represent the `id`, `name`, and `past` states for the sourced names
* create a vector of `(SourcedName, DomRoot<HTMLElement>)` by iterating over `self.controls` and checking the element type and calling methods like `HTMLElement::is_listed_element`
---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #16479 (GitHub issue number if applicable)
Diffstat (limited to 'components/script/dom/request.rs')
0 files changed, 0 insertions, 0 deletions