Implement setRangeText API

Spec: https://html.spec.whatwg.org/multipage/#dom-textarea/input-setrangetext

In order to do this, we need to define the SelectionMode enum in WebIDL:
https://html.spec.whatwg.org/multipage/#selectionmode

Since the enum is used by HTMLTextAreaElement and HTMLInputElement, it
doesn't seem to make sense to define it in the WebIDL file for one or
other of those.

However, we also can't create a stand-alone SelectionMode.webidl file,
because the current binding-generation code won't generate a "pub mod
SelectionMode;" line in mod.rs unless SelectionMode.webidl contains
either an interface or a namespace. (This logic happens in
components/script/dom/bindings/codegen/Configuration.py:35, in the
Configuration.__init__ method.)

I thought about changing the binding-generation code, but that seems
difficult. So I settled for placing the enum inside
HTMLFormElement.webidl, as that seems like a "neutral" location. We
could equally settle for putting it under HTMLTextAreaElement or
HTMLInputElement, it probably doesn't really matter.

The setRangeText algorithm set the "dirty value flag" on the
input/textarea. I made some clean-ups related to this:

1. HTMLTextAreaElement called its dirty value flag "value_changed"; I
   changed this to "value_dirty" to be consistent with the spec.

2. HTMLInputElement had a "value_changed" field and also a "value_dirty"
   field, which were each used in slightly different places (and
   sometimes in both places). I consolidated these into a single
   "value_dirty" field, which was necessary in order to make some of the
   tests pass.

TextControl::set_dom_range_text replaces part of the existing textinput
content with the replacement string (steps 9-10 of the algorithm). My
implementation changes the textinput's selection and then replaces the
selection. A downside of this approach is that we lose the original
selection state from before the call to setRangeText. Therefore, we have
to save the state into the original_selection_state variable so that we
can later pass it into TextControl::set_selection_range. This allows
TextControl::set_selection_range to correctly decide whether or not to
fire the select event.

An alternative approach would be to implement a method on TextInput
which allows a subtring of the content to be mutated, without touching
the current selection state. However, any such method would potentially
put the TextInput into an inconsistent state where the edit_point and/or
selection_origin is a TextPoint which doesn't exist in the content. It
would be up to the caller to subsequently make sure that the TextInput
gets put back into a valid state (which would actually happen, when
TextControl::set_selection_range is called).

I think TextInput's public API should not make it possible to put it
into an invalid state, as that would be a potential source of bugs.
That's why I didn't take this approach. (TextInput's public API does
currently make it possible to create an invalid state, but I'd like to
submit a follow-up patch to lock this down.)
This commit is contained in:
Jon Leighton 2017-12-11 15:57:18 +01:00
parent e34f7c58c9
commit ce7bae8834
13 changed files with 198 additions and 740 deletions

View file

@ -3090,9 +3090,6 @@
[HTMLInputElement interface: operation setCustomValidity(DOMString)]
expected: FAIL
[HTMLInputElement interface: operation setRangeText(DOMString)]
expected: FAIL
[HTMLInputElement interface: operation setRangeText(DOMString,unsigned long,unsigned long,SelectionMode)]
expected: FAIL
@ -3171,9 +3168,6 @@
[HTMLInputElement interface: document.createElement("input") must inherit property "setRangeText" with the proper type (53)]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString) on document.createElement("input") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: document.createElement("input") must inherit property "setRangeText" with the proper type (54)]
expected: FAIL
@ -3339,9 +3333,6 @@
[HTMLTextAreaElement interface: operation setCustomValidity(DOMString)]
expected: FAIL
[HTMLTextAreaElement interface: operation setRangeText(DOMString)]
expected: FAIL
[HTMLTextAreaElement interface: operation setRangeText(DOMString,unsigned long,unsigned long,SelectionMode)]
expected: FAIL
@ -3393,9 +3384,6 @@
[HTMLTextAreaElement interface: document.createElement("textarea") must inherit property "setRangeText" with the proper type (30)]
expected: FAIL
[HTMLTextAreaElement interface: calling setRangeText(DOMString) on document.createElement("textarea") with too few arguments must throw TypeError]
expected: FAIL
[HTMLTextAreaElement interface: document.createElement("textarea") must inherit property "setRangeText" with the proper type (31)]
expected: FAIL
@ -6291,9 +6279,6 @@
[HTMLInputElement interface: createInput("text") must inherit property "setRangeText" with the proper type (53)]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString) on createInput("text") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("text") must inherit property "setRangeText" with the proper type (54)]
expected: FAIL
@ -6375,9 +6360,6 @@
[HTMLInputElement interface: createInput("hidden") must inherit property "setRangeText" with the proper type (53)]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString) on createInput("hidden") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("hidden") must inherit property "setRangeText" with the proper type (54)]
expected: FAIL
@ -6459,9 +6441,6 @@
[HTMLInputElement interface: createInput("search") must inherit property "setRangeText" with the proper type (53)]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString) on createInput("search") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("search") must inherit property "setRangeText" with the proper type (54)]
expected: FAIL
@ -6543,9 +6522,6 @@
[HTMLInputElement interface: createInput("tel") must inherit property "setRangeText" with the proper type (53)]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString) on createInput("tel") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("tel") must inherit property "setRangeText" with the proper type (54)]
expected: FAIL
@ -6627,9 +6603,6 @@
[HTMLInputElement interface: createInput("url") must inherit property "setRangeText" with the proper type (53)]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString) on createInput("url") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("url") must inherit property "setRangeText" with the proper type (54)]
expected: FAIL
@ -6711,9 +6684,6 @@
[HTMLInputElement interface: createInput("email") must inherit property "setRangeText" with the proper type (53)]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString) on createInput("email") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("email") must inherit property "setRangeText" with the proper type (54)]
expected: FAIL
@ -6795,9 +6765,6 @@
[HTMLInputElement interface: createInput("password") must inherit property "setRangeText" with the proper type (53)]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString) on createInput("password") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("password") must inherit property "setRangeText" with the proper type (54)]
expected: FAIL
@ -6879,9 +6846,6 @@
[HTMLInputElement interface: createInput("date") must inherit property "setRangeText" with the proper type (53)]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString) on createInput("date") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("date") must inherit property "setRangeText" with the proper type (54)]
expected: FAIL
@ -6963,9 +6927,6 @@
[HTMLInputElement interface: createInput("month") must inherit property "setRangeText" with the proper type (53)]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString) on createInput("month") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("month") must inherit property "setRangeText" with the proper type (54)]
expected: FAIL
@ -7047,9 +7008,6 @@
[HTMLInputElement interface: createInput("week") must inherit property "setRangeText" with the proper type (53)]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString) on createInput("week") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("week") must inherit property "setRangeText" with the proper type (54)]
expected: FAIL
@ -7131,9 +7089,6 @@
[HTMLInputElement interface: createInput("time") must inherit property "setRangeText" with the proper type (53)]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString) on createInput("time") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("time") must inherit property "setRangeText" with the proper type (54)]
expected: FAIL
@ -7215,9 +7170,6 @@
[HTMLInputElement interface: createInput("datetime-local") must inherit property "setRangeText" with the proper type (53)]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString) on createInput("datetime-local") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("datetime-local") must inherit property "setRangeText" with the proper type (54)]
expected: FAIL
@ -7299,9 +7251,6 @@
[HTMLInputElement interface: createInput("number") must inherit property "setRangeText" with the proper type (53)]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString) on createInput("number") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("number") must inherit property "setRangeText" with the proper type (54)]
expected: FAIL
@ -7383,9 +7332,6 @@
[HTMLInputElement interface: createInput("range") must inherit property "setRangeText" with the proper type (53)]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString) on createInput("range") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("range") must inherit property "setRangeText" with the proper type (54)]
expected: FAIL
@ -7467,9 +7413,6 @@
[HTMLInputElement interface: createInput("color") must inherit property "setRangeText" with the proper type (53)]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString) on createInput("color") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("color") must inherit property "setRangeText" with the proper type (54)]
expected: FAIL
@ -7551,9 +7494,6 @@
[HTMLInputElement interface: createInput("checkbox") must inherit property "setRangeText" with the proper type (53)]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString) on createInput("checkbox") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("checkbox") must inherit property "setRangeText" with the proper type (54)]
expected: FAIL
@ -7635,9 +7575,6 @@
[HTMLInputElement interface: createInput("radio") must inherit property "setRangeText" with the proper type (53)]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString) on createInput("radio") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("radio") must inherit property "setRangeText" with the proper type (54)]
expected: FAIL
@ -7722,9 +7659,6 @@
[HTMLInputElement interface: createInput("file") must inherit property "setRangeText" with the proper type (53)]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString) on createInput("file") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("file") must inherit property "setRangeText" with the proper type (54)]
expected: FAIL
@ -7806,9 +7740,6 @@
[HTMLInputElement interface: createInput("submit") must inherit property "setRangeText" with the proper type (53)]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString) on createInput("submit") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("submit") must inherit property "setRangeText" with the proper type (54)]
expected: FAIL
@ -7890,9 +7821,6 @@
[HTMLInputElement interface: createInput("image") must inherit property "setRangeText" with the proper type (53)]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString) on createInput("image") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("image") must inherit property "setRangeText" with the proper type (54)]
expected: FAIL
@ -7974,9 +7902,6 @@
[HTMLInputElement interface: createInput("reset") must inherit property "setRangeText" with the proper type (53)]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString) on createInput("reset") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("reset") must inherit property "setRangeText" with the proper type (54)]
expected: FAIL
@ -8058,9 +7983,6 @@
[HTMLInputElement interface: createInput("button") must inherit property "setRangeText" with the proper type (53)]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString) on createInput("button") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("button") must inherit property "setRangeText" with the proper type (54)]
expected: FAIL
@ -11730,9 +11652,6 @@
[HTMLInputElement interface: attribute files]
expected: FAIL
[HTMLInputElement interface: operation setRangeText(DOMString, unsigned long, unsigned long, SelectionMode)]
expected: FAIL
[HTMLInputElement interface: document.createElement("input") must inherit property "autocomplete" with the proper type]
expected: FAIL
@ -11781,15 +11700,6 @@
[HTMLInputElement interface: document.createElement("input") must inherit property "setCustomValidity(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: document.createElement("input") must inherit property "setRangeText(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: document.createElement("input") must inherit property "setRangeText(DOMString, unsigned long, unsigned long, SelectionMode)" with the proper type]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString, unsigned long, unsigned long, SelectionMode) on document.createElement("input") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: document.createElement("input") must inherit property "align" with the proper type]
expected: FAIL
@ -11844,15 +11754,6 @@
[HTMLInputElement interface: createInput("text") must inherit property "setCustomValidity(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("text") must inherit property "setRangeText(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("text") must inherit property "setRangeText(DOMString, unsigned long, unsigned long, SelectionMode)" with the proper type]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString, unsigned long, unsigned long, SelectionMode) on createInput("text") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("text") must inherit property "align" with the proper type]
expected: FAIL
@ -11907,15 +11808,6 @@
[HTMLInputElement interface: createInput("hidden") must inherit property "setCustomValidity(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("hidden") must inherit property "setRangeText(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("hidden") must inherit property "setRangeText(DOMString, unsigned long, unsigned long, SelectionMode)" with the proper type]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString, unsigned long, unsigned long, SelectionMode) on createInput("hidden") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("hidden") must inherit property "align" with the proper type]
expected: FAIL
@ -11970,15 +11862,6 @@
[HTMLInputElement interface: createInput("search") must inherit property "setCustomValidity(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("search") must inherit property "setRangeText(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("search") must inherit property "setRangeText(DOMString, unsigned long, unsigned long, SelectionMode)" with the proper type]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString, unsigned long, unsigned long, SelectionMode) on createInput("search") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("search") must inherit property "align" with the proper type]
expected: FAIL
@ -12033,15 +11916,6 @@
[HTMLInputElement interface: createInput("tel") must inherit property "setCustomValidity(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("tel") must inherit property "setRangeText(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("tel") must inherit property "setRangeText(DOMString, unsigned long, unsigned long, SelectionMode)" with the proper type]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString, unsigned long, unsigned long, SelectionMode) on createInput("tel") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("tel") must inherit property "align" with the proper type]
expected: FAIL
@ -12096,15 +11970,6 @@
[HTMLInputElement interface: createInput("url") must inherit property "setCustomValidity(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("url") must inherit property "setRangeText(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("url") must inherit property "setRangeText(DOMString, unsigned long, unsigned long, SelectionMode)" with the proper type]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString, unsigned long, unsigned long, SelectionMode) on createInput("url") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("url") must inherit property "align" with the proper type]
expected: FAIL
@ -12159,15 +12024,6 @@
[HTMLInputElement interface: createInput("email") must inherit property "setCustomValidity(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("email") must inherit property "setRangeText(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("email") must inherit property "setRangeText(DOMString, unsigned long, unsigned long, SelectionMode)" with the proper type]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString, unsigned long, unsigned long, SelectionMode) on createInput("email") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("email") must inherit property "align" with the proper type]
expected: FAIL
@ -12222,15 +12078,6 @@
[HTMLInputElement interface: createInput("password") must inherit property "setCustomValidity(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("password") must inherit property "setRangeText(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("password") must inherit property "setRangeText(DOMString, unsigned long, unsigned long, SelectionMode)" with the proper type]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString, unsigned long, unsigned long, SelectionMode) on createInput("password") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("password") must inherit property "align" with the proper type]
expected: FAIL
@ -12285,15 +12132,6 @@
[HTMLInputElement interface: createInput("date") must inherit property "setCustomValidity(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("date") must inherit property "setRangeText(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("date") must inherit property "setRangeText(DOMString, unsigned long, unsigned long, SelectionMode)" with the proper type]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString, unsigned long, unsigned long, SelectionMode) on createInput("date") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("date") must inherit property "align" with the proper type]
expected: FAIL
@ -12348,15 +12186,6 @@
[HTMLInputElement interface: createInput("month") must inherit property "setCustomValidity(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("month") must inherit property "setRangeText(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("month") must inherit property "setRangeText(DOMString, unsigned long, unsigned long, SelectionMode)" with the proper type]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString, unsigned long, unsigned long, SelectionMode) on createInput("month") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("month") must inherit property "align" with the proper type]
expected: FAIL
@ -12411,15 +12240,6 @@
[HTMLInputElement interface: createInput("week") must inherit property "setCustomValidity(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("week") must inherit property "setRangeText(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("week") must inherit property "setRangeText(DOMString, unsigned long, unsigned long, SelectionMode)" with the proper type]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString, unsigned long, unsigned long, SelectionMode) on createInput("week") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("week") must inherit property "align" with the proper type]
expected: FAIL
@ -12474,15 +12294,6 @@
[HTMLInputElement interface: createInput("time") must inherit property "setCustomValidity(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("time") must inherit property "setRangeText(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("time") must inherit property "setRangeText(DOMString, unsigned long, unsigned long, SelectionMode)" with the proper type]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString, unsigned long, unsigned long, SelectionMode) on createInput("time") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("time") must inherit property "align" with the proper type]
expected: FAIL
@ -12537,15 +12348,6 @@
[HTMLInputElement interface: createInput("datetime-local") must inherit property "setCustomValidity(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("datetime-local") must inherit property "setRangeText(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("datetime-local") must inherit property "setRangeText(DOMString, unsigned long, unsigned long, SelectionMode)" with the proper type]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString, unsigned long, unsigned long, SelectionMode) on createInput("datetime-local") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("datetime-local") must inherit property "align" with the proper type]
expected: FAIL
@ -12600,15 +12402,6 @@
[HTMLInputElement interface: createInput("number") must inherit property "setCustomValidity(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("number") must inherit property "setRangeText(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("number") must inherit property "setRangeText(DOMString, unsigned long, unsigned long, SelectionMode)" with the proper type]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString, unsigned long, unsigned long, SelectionMode) on createInput("number") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("number") must inherit property "align" with the proper type]
expected: FAIL
@ -12663,15 +12456,6 @@
[HTMLInputElement interface: createInput("range") must inherit property "setCustomValidity(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("range") must inherit property "setRangeText(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("range") must inherit property "setRangeText(DOMString, unsigned long, unsigned long, SelectionMode)" with the proper type]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString, unsigned long, unsigned long, SelectionMode) on createInput("range") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("range") must inherit property "align" with the proper type]
expected: FAIL
@ -12726,15 +12510,6 @@
[HTMLInputElement interface: createInput("color") must inherit property "setCustomValidity(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("color") must inherit property "setRangeText(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("color") must inherit property "setRangeText(DOMString, unsigned long, unsigned long, SelectionMode)" with the proper type]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString, unsigned long, unsigned long, SelectionMode) on createInput("color") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("color") must inherit property "align" with the proper type]
expected: FAIL
@ -12789,15 +12564,6 @@
[HTMLInputElement interface: createInput("checkbox") must inherit property "setCustomValidity(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("checkbox") must inherit property "setRangeText(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("checkbox") must inherit property "setRangeText(DOMString, unsigned long, unsigned long, SelectionMode)" with the proper type]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString, unsigned long, unsigned long, SelectionMode) on createInput("checkbox") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("checkbox") must inherit property "align" with the proper type]
expected: FAIL
@ -12852,15 +12618,6 @@
[HTMLInputElement interface: createInput("radio") must inherit property "setCustomValidity(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("radio") must inherit property "setRangeText(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("radio") must inherit property "setRangeText(DOMString, unsigned long, unsigned long, SelectionMode)" with the proper type]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString, unsigned long, unsigned long, SelectionMode) on createInput("radio") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("radio") must inherit property "align" with the proper type]
expected: FAIL
@ -12918,15 +12675,6 @@
[HTMLInputElement interface: createInput("file") must inherit property "setCustomValidity(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("file") must inherit property "setRangeText(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("file") must inherit property "setRangeText(DOMString, unsigned long, unsigned long, SelectionMode)" with the proper type]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString, unsigned long, unsigned long, SelectionMode) on createInput("file") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("file") must inherit property "align" with the proper type]
expected: FAIL
@ -12981,15 +12729,6 @@
[HTMLInputElement interface: createInput("submit") must inherit property "setCustomValidity(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("submit") must inherit property "setRangeText(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("submit") must inherit property "setRangeText(DOMString, unsigned long, unsigned long, SelectionMode)" with the proper type]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString, unsigned long, unsigned long, SelectionMode) on createInput("submit") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("submit") must inherit property "align" with the proper type]
expected: FAIL
@ -13044,15 +12783,6 @@
[HTMLInputElement interface: createInput("image") must inherit property "setCustomValidity(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("image") must inherit property "setRangeText(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("image") must inherit property "setRangeText(DOMString, unsigned long, unsigned long, SelectionMode)" with the proper type]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString, unsigned long, unsigned long, SelectionMode) on createInput("image") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("image") must inherit property "align" with the proper type]
expected: FAIL
@ -13107,15 +12837,6 @@
[HTMLInputElement interface: createInput("reset") must inherit property "setCustomValidity(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("reset") must inherit property "setRangeText(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("reset") must inherit property "setRangeText(DOMString, unsigned long, unsigned long, SelectionMode)" with the proper type]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString, unsigned long, unsigned long, SelectionMode) on createInput("reset") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("reset") must inherit property "align" with the proper type]
expected: FAIL
@ -13170,15 +12891,6 @@
[HTMLInputElement interface: createInput("button") must inherit property "setCustomValidity(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("button") must inherit property "setRangeText(DOMString)" with the proper type]
expected: FAIL
[HTMLInputElement interface: createInput("button") must inherit property "setRangeText(DOMString, unsigned long, unsigned long, SelectionMode)" with the proper type]
expected: FAIL
[HTMLInputElement interface: calling setRangeText(DOMString, unsigned long, unsigned long, SelectionMode) on createInput("button") with too few arguments must throw TypeError]
expected: FAIL
[HTMLInputElement interface: createInput("button") must inherit property "align" with the proper type]
expected: FAIL
@ -13260,9 +12972,6 @@
[HTMLOptionElement interface: new Option() must inherit property "index" with the proper type]
expected: FAIL
[HTMLTextAreaElement interface: operation setRangeText(DOMString, unsigned long, unsigned long, SelectionMode)]
expected: FAIL
[HTMLTextAreaElement interface: document.createElement("textarea") must inherit property "autocomplete" with the proper type]
expected: FAIL
@ -13302,15 +13011,6 @@
[HTMLTextAreaElement interface: document.createElement("textarea") must inherit property "setCustomValidity(DOMString)" with the proper type]
expected: FAIL
[HTMLTextAreaElement interface: document.createElement("textarea") must inherit property "setRangeText(DOMString)" with the proper type]
expected: FAIL
[HTMLTextAreaElement interface: document.createElement("textarea") must inherit property "setRangeText(DOMString, unsigned long, unsigned long, SelectionMode)" with the proper type]
expected: FAIL
[HTMLTextAreaElement interface: calling setRangeText(DOMString, unsigned long, unsigned long, SelectionMode) on document.createElement("textarea") with too few arguments must throw TypeError]
expected: FAIL
[HTMLOutputElement interface: document.createElement("output") must inherit property "htmlFor" with the proper type]
expected: FAIL