Add the type IDL attribute to htmlfieldsetelement (#32869)

* Add the type IDL attribute to htmlfieldsetelement

Signed-off-by: Shane Handley <shanehandley@fastmail.com>

* Fix missing idlharness test expectations

Signed-off-by: Shane Handley <shanehandley@fastmail.com>

---------

Signed-off-by: Shane Handley <shanehandley@fastmail.com>
This commit is contained in:
shanehandley 2024-07-29 01:01:01 +10:00 committed by GitHub
parent bc75bf4cfa
commit ed8def2896
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 6 additions and 14 deletions

View file

@ -144,6 +144,11 @@ impl HTMLFieldSetElementMethods for HTMLFieldSetElement {
fn SetCustomValidity(&self, error: DOMString) {
self.validity_state().set_custom_error_message(error);
}
/// <https://html.spec.whatwg.org/multipage/#dom-fieldset-type>
fn Type(&self) -> DOMString {
DOMString::from_string(String::from("fieldset"))
}
}
impl VirtualMethods for HTMLFieldSetElement {

View file

@ -13,7 +13,7 @@ interface HTMLFieldSetElement : HTMLElement {
[CEReactions]
attribute DOMString name;
//readonly attribute DOMString type;
readonly attribute DOMString type;
[SameObject] readonly attribute HTMLCollection elements;

View file

@ -2979,9 +2979,6 @@
[HTMLEmbedElement interface: document.createElement("embed") must inherit property "name" with the proper type]
expected: FAIL
[HTMLFieldSetElement interface: attribute type]
expected: FAIL
[HTMLInputElement interface: createInput("tel") must inherit property "useMap" with the proper type]
expected: FAIL

View file

@ -1,8 +1,4 @@
[HTMLFieldSetElement.html]
type: testharness
[The type attribute must return 'fieldset']
expected: FAIL
[The elements must return an HTMLFormControlsCollection object]
expected: FAIL

View file

@ -2823,9 +2823,6 @@
[HTMLEmbedElement interface: document.createElement("embed") must inherit property "name" with the proper type]
expected: FAIL
[HTMLFieldSetElement interface: attribute type]
expected: FAIL
[HTMLInputElement interface: createInput("tel") must inherit property "useMap" with the proper type]
expected: FAIL

View file

@ -1,3 +0,0 @@
[HTMLFieldSetElement.html]
[The type attribute must return 'fieldset']
expected: FAIL