servo/components/script/dom/bindings
bors-servo d205194618
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](f63b404e0c/components/script/dom/webidls/HTMLFormElement.webidl (L30)) from HTMLFormElement.webidl
* add the missing `NamedGetter` and `SupportedPropertyNames` methods to [HTMLFormElement](f63b404e0c/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)
2019-12-16 18:10:12 -05:00
..
codegen Fix tidiness errors for Python3 compatibility across whole repo 2019-12-11 16:03:20 +00:00
callback.rs Use #![register_tool] instead of #![register_attr] 2019-11-15 17:24:42 +01:00
cell.rs Make use of RefCell::try_borrow_unguarded 2019-04-12 19:02:07 +02:00
constant.rs Use safe JSContext when possible in interface.rs 2019-08-09 00:43:24 +01:00
conversions.rs Auto merge of #24694 - servo:rustup, r=jdm 2019-11-09 10:15:30 -05:00
error.rs Stringifier is sno longer exposed 2019-12-12 20:20:31 -05:00
guard.rs Use safe JSContext when possible in interface.rs 2019-08-09 00:43:24 +01:00
htmlconstructor.rs Remove usage of various unsafe keyword 2019-08-09 00:43:28 +01:00
inheritance.rs Update MPL license to https (part 3) 2018-11-19 14:47:12 +01:00
interface.rs Support [LegacyWindowAlias] 2019-10-19 12:01:00 +09:00
iterable.rs Remove some usage of unsafe code in iterator.rs 2019-08-09 00:02:09 +01:00
mod.rs begin messageport, transferable objects, impl 2019-10-19 14:12:22 +08:00
namespace.rs Use safe JSContext when possible in interface.rs 2019-08-09 00:43:24 +01:00
num.rs Update MPL license to https (part 3) 2018-11-19 14:47:12 +01:00
proxyhandler.rs Upgrade to Spidermonkey 67. 2019-06-26 18:10:46 -04:00
record.rs Support WebIDL record<> 2019-10-15 17:14:00 +09:00
refcounted.rs Use #![register_tool] instead of #![register_attr] 2019-11-15 17:24:42 +01:00
reflector.rs Use #![register_tool] instead of #![register_attr] 2019-11-15 17:24:42 +01:00
root.rs Use #![register_tool] instead of #![register_attr] 2019-11-15 17:24:42 +01:00
settings_stack.rs Update MPL license to https (part 3) 2018-11-19 14:47:12 +01:00
str.rs Add DOMString floating point string test and fix 2019-11-30 23:29:09 -05:00
structuredclone.rs continue messageport, transferable, postmessage options 2019-10-19 14:28:18 +08:00
trace.rs Auto merge of #25070 - cagandhi:named-form-getter, r=jdm 2019-12-16 18:10:12 -05:00
transferable.rs continue messageport, transferable, postmessage options 2019-10-19 14:28:18 +08:00
utils.rs Handle u32 property indices 2019-11-27 15:50:04 +09:00
weakref.rs Use #![register_tool] instead of #![register_attr] 2019-11-15 17:24:42 +01:00
xmlname.rs Fix some new warnings 2019-06-22 14:59:09 +02:00