Add form getters for additional elements; update test expectations

This adds form getters for fieldset, label, object, output, select and
textarea elements.
This commit is contained in:
Philipp Hartwig 2015-09-27 19:08:53 +02:00
parent a1fb8cfbb0
commit 8d67914c7f
14 changed files with 83 additions and 61 deletions

View file

@ -6,7 +6,7 @@
// https://www.whatwg.org/html/#htmlfieldsetelement
interface HTMLFieldSetElement : HTMLElement {
attribute boolean disabled;
//readonly attribute HTMLFormElement? form;
readonly attribute HTMLFormElement? form;
// attribute DOMString name;
//readonly attribute DOMString type;

View file

@ -5,7 +5,7 @@
// https://www.whatwg.org/html/#htmllabelelement
interface HTMLLabelElement : HTMLElement {
//readonly attribute HTMLFormElement? form;
readonly attribute HTMLFormElement? form;
// attribute DOMString htmlFor;
//readonly attribute HTMLElement? control;
};

View file

@ -10,7 +10,7 @@ interface HTMLObjectElement : HTMLElement {
// attribute boolean typeMustMatch;
// attribute DOMString name;
// attribute DOMString useMap;
//readonly attribute HTMLFormElement? form;
readonly attribute HTMLFormElement? form;
// attribute DOMString width;
// attribute DOMString height;
//readonly attribute Document? contentDocument;

View file

@ -6,7 +6,7 @@
// https://www.whatwg.org/html/#htmloutputelement
interface HTMLOutputElement : HTMLElement {
//[PutForwards=value] readonly attribute DOMSettableTokenList htmlFor;
//readonly attribute HTMLFormElement? form;
readonly attribute HTMLFormElement? form;
// attribute DOMString name;
//readonly attribute DOMString type;

View file

@ -7,7 +7,7 @@
interface HTMLSelectElement : HTMLElement {
// attribute boolean autofocus;
attribute boolean disabled;
//readonly attribute HTMLFormElement? form;
readonly attribute HTMLFormElement? form;
attribute boolean multiple;
attribute DOMString name;
// attribute boolean required;

View file

@ -11,7 +11,7 @@ interface HTMLTextAreaElement : HTMLElement {
attribute unsigned long cols;
// attribute DOMString dirName;
attribute boolean disabled;
//readonly attribute HTMLFormElement? form;
readonly attribute HTMLFormElement? form;
// attribute DOMString inputMode;
// attribute long maxLength;
// attribute long minLength;