Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Convert Web IDL void to undefined | Kagami Sascha Rosylight | 2022-01-05 | 1 | -3/+3 |
| | | | | Fixes #27660 | ||||
* | Ported Rel, SetRel, and RelList from HTMLAnchorElement into HTMLForElement | Arjun Ramachandrula | 2020-07-14 | 1 | -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 Tsoy | 2020-07-02 | 1 | -0/+1 |
| | | | | form submission behavior | ||||
* | Form constraints validation | teapotd | 2020-04-02 | 1 | -2/+2 |
| | |||||
* | Make property descriptors hold named/indexed property values | Patrick Shaughnessy | 2020-01-10 | 1 | -1/+1 |
| | |||||
* | uncomment the named getter from HTMLFormElement.webidl | Chintan Gandhi | 2019-11-27 | 1 | -1/+1 |
| | |||||
* | Convert [HTMLConstructor] as constructor extension | Kagami Sascha Rosylight | 2019-10-19 | 1 | -1/+3 |
| | |||||
* | Remove [PrimaryGlobal] | Kagami Sascha Rosylight | 2019-10-03 | 1 | -1/+1 |
| | |||||
* | Update MPL license to https (part 2) | Jan Andre Ikenmeyer | 2018-11-19 | 1 | -1/+1 |
| | |||||
* | Implement setRangeText API | Jon Leighton | 2018-01-26 | 1 | -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 needed | Connor Brewster | 2017-07-18 | 1 | -0/+10 |
| | |||||
* | Add HTMLConstructor attributes where needed | Connor Brewster | 2017-06-15 | 1 | -1/+1 |
| | |||||
* | Bug 1270740 - remove requestAutocomplete reference | Jonathan Guillotte-Blouin | 2017-05-15 | 1 | -2/+0 |
| | |||||
* | Partial fix for 12415 | Scott Trinh | 2016-10-17 | 1 | -1/+0 |
| | |||||
* | Explicitly expose everything everywhere. | Ms2ger | 2016-07-12 | 1 | -0/+1 |
| | |||||
* | indexed getter of form elements | mrmiywj | 2016-06-14 | 1 | -1/+1 |
| | |||||
* | Remove modelines everywhere but tests/wpt | edunham | 2016-04-20 | 1 | -1/+0 |
| | |||||
* | Update HTMLFormElement.length to be of type unsigned long | Joshua Holmer | 2016-01-22 | 1 | -1/+1 |
| | | | | Fixes #9402 | ||||
* | Implement HTMLFormElement::Length | Corey Farwell | 2016-01-10 | 1 | -1/+1 |
| | |||||
* | Implement HTMLFormElement::Elements | Corey Farwell | 2016-01-10 | 1 | -1/+1 |
| | | | | Fixes #8566 | ||||
* | Update HTMLFormElement WebIDL to match spec | Corey Farwell | 2016-01-08 | 1 | -1/+1 |
| | | | | https://html.spec.whatwg.org/multipage/#htmlformelement | ||||
* | Explicitly place '/' before fragment for multipage spec links | Corey Farwell | 2015-10-10 | 1 | -1/+1 |
| | | | | | This prevents us from 301 redirecting, which could cause the fragment to get lost | ||||
* | Replace usage of old-style WHATWG spec links | Corey Farwell | 2015-10-10 | 1 | -1/+1 |
| | |||||
* | Update WHATWG links to use HTTPS | Corey Farwell | 2015-04-13 | 1 | -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 resetting | Matthew Rasmus | 2014-12-16 | 1 | -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 Goregaokar | 2014-10-11 | 1 | -1/+1 |
| | |||||
* | Implement most of HTMLFormElement's webidl | Manish Goregaokar | 2014-10-07 | 1 | -9/+9 |
| | |||||
* | Cargoify servo | Jack Moffitt | 2014-09-08 | 1 | -0/+30 |