aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/HTMLFormElement.webidl
Commit message (Collapse)AuthorAgeFilesLines
* Convert Web IDL void to undefinedKagami Sascha Rosylight2022-01-051-3/+3
| | | | Fixes #27660
* Ported Rel, SetRel, and RelList from HTMLAnchorElement into HTMLForElementArjun Ramachandrula2020-07-141-0/+3
| | | | | | | | | | | | | | Updated tests to reflect rel and relList in HTMLFormElement Added AttrValue as style Added attr Updated outstanding test cases Fixed formatting. Hopefully this time works Implemented HTMLFormElement.relList
* Implement HTMLFormElement.requestSubmit()Also includes a fix for reentrant ↵Maxim Tsoy2020-07-021-0/+1
| | | | form submission behavior
* Form constraints validationteapotd2020-04-021-2/+2
|
* Make property descriptors hold named/indexed property valuesPatrick Shaughnessy2020-01-101-1/+1
|
* uncomment the named getter from HTMLFormElement.webidlChintan Gandhi2019-11-271-1/+1
|
* Convert [HTMLConstructor] as constructor extensionKagami Sascha Rosylight2019-10-191-1/+3
|
* Remove [PrimaryGlobal]Kagami Sascha Rosylight2019-10-031-1/+1
|
* Update MPL license to https (part 2)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Implement setRangeText APIJon Leighton2018-01-261-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.)
* Add CEReactions where neededConnor Brewster2017-07-181-0/+10
|
* Add HTMLConstructor attributes where neededConnor Brewster2017-06-151-1/+1
|
* Bug 1270740 - remove requestAutocomplete referenceJonathan Guillotte-Blouin2017-05-151-2/+0
|
* Partial fix for 12415Scott Trinh2016-10-171-1/+0
|
* Explicitly expose everything everywhere.Ms2ger2016-07-121-0/+1
|
* indexed getter of form elementsmrmiywj2016-06-141-1/+1
|
* Remove modelines everywhere but tests/wptedunham2016-04-201-1/+0
|
* Update HTMLFormElement.length to be of type unsigned longJoshua Holmer2016-01-221-1/+1
| | | | Fixes #9402
* Implement HTMLFormElement::LengthCorey Farwell2016-01-101-1/+1
|
* Implement HTMLFormElement::ElementsCorey Farwell2016-01-101-1/+1
| | | | Fixes #8566
* Update HTMLFormElement WebIDL to match specCorey Farwell2016-01-081-1/+1
| | | | https://html.spec.whatwg.org/multipage/#htmlformelement
* Explicitly place '/' before fragment for multipage spec linksCorey Farwell2015-10-101-1/+1
| | | | | This prevents us from 301 redirecting, which could cause the fragment to get lost
* Replace usage of old-style WHATWG spec linksCorey Farwell2015-10-101-1/+1
|
* Update WHATWG links to use HTTPSCorey Farwell2015-04-131-1/+1
| | | | | | | | | | | | | | Extracted this out of #5649 This commit was created with the following commands: ``` find . -iname "*.webidl" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)whatwg.org/https:\1whatwg.org/g' ``` ``` find . -iname "*.rs" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)whatwg.org/https:\1whatwg.org/g' ```
* Implements basic form resettingMatthew Rasmus2014-12-161-1/+1
| | | | | | | What can this do? Reset `<input type=text>` fields back to their default value through a call to a form's reset method. That's all for now! Fixes compile error after rebase
* Implement extremely basic form submission (fixes #3554)Manish Goregaokar2014-10-111-1/+1
|
* Implement most of HTMLFormElement's webidlManish Goregaokar2014-10-071-9/+9
|
* Cargoify servoJack Moffitt2014-09-081-0/+30