aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlinputelement.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* | delete suffixesRafael Quintero2016-06-041-3/+3
|/ | | | | | | | delete suffixes for variants SubmittedFrom, ResetFrom delete suffixes for variants SubmittedFrom, ResetFrom
* Remove empty lines following braces.Josh Matthews2016-05-271-2/+0
|
* Parse HTMLInputElement attributesKeith Yeung2016-05-241-24/+25
|
* Move DOMString back to scriptAnthony Ramine2016-05-241-5/+5
| | | | This entirely removes the 'non-geckolib' feature of the util crate.
* Auto merge of #11333 - Manishearth:submit-submit-button, r=noxbors-servo2016-05-231-2/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Include <button type=submit> data whilst constructing the form dataset This makes it possible to close things in github (see https://github.com/Manishearth/mitochondria/issues/1) - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors Either: - [x] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11333) <!-- Reviewable:end -->
| * Include <button type=submit> data whilst constructing the form datasetManish Goregaokar2016-05-231-2/+4
| |
* | Implement file-type functionalities in htmlinputelement and relatedZhen Zhang2016-05-231-6/+62
|/ | | | | | | | Changes include: - Implement file selection and other DOM behaviours in htmlinputelement - Integrate IpcSender<FileManagerThreadMsg> into ResourceThreads - Improve filemanager_thread, including adding type_string field to SelectedFile - Improve interfaces in FileList/File/Blob to accommodate the above changes
* Remove ConstellationChan.Ms2ger2016-05-191-2/+2
| | | | | | It's a pointless abstraction that propagates the obsolete chan terminology, swaps the order in which the sender and receiver are returned, and hides a source of panics.
* Removed unused importsPer Lundberg2016-05-151-2/+0
| | | | This fixes #11185.
* Fire 'select' event in SetSelectionRangeKeith Yeung2016-05-121-2/+7
|
* Implement user interaction task sourceKeith Yeung2016-05-111-34/+8
|
* Support form submission of multipart/form-dataPrabhjyot Singh Sodhi2016-04-301-2/+3
|
* Auto merge of #10834 - yoava333:master, r=SimonSapinbors-servo2016-04-291-1/+30
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | added support for :read-only and :read-write pseudo-classes partial fix for https://github.com/servo/servo/issues/10732 It's not a full fix because: 1. there's a bug in wpt-test https://github.com/w3c/web-platform-tests/issues/2889#issuecomment-214144420 2. we don't fully support all input types (namely image, color, hidden and range), which are defaulted to input text. this means that :read-write which is applicable to input text is mis-handled in those cases. 3. we don't support contenteditable, which is also possibly :read-write <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10834) <!-- Reviewable:end -->
| * added support for :read-only and :read-write pseudo-classesYoav Alon2016-04-271-1/+30
| | | | | | | | partial fix for https://github.com/servo/servo/issues/10732
* | Reduce channel cloning.Ms2ger2016-04-291-1/+1
| |
* | Auto merge of #10895 - mbrubeck:byteindex, r=pcwaltonbors-servo2016-04-281-19/+22
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use byte indices instead of char indices for text runs Replace character indices with UTF-8 byte offsets throughout all code dealing with text runs. This eliminates a lot of complexity when converting from one to the other, and interoperates better with the rest of the Rust ecosystem. For most code this is just a simple replacement of char indices with byte indices. In a few places like glyph storage and text fragment scanning, it also lets us get rid of code that existed only to map between bytes and chars. Also includes some related fixes to text shaping, discovered while working on this conversion. See the commit messages for details. r? @pcwalton <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10895) <!-- Reviewable:end -->
| * | Replace range::Range with std::ops::Range in scriptMatt Brubeck2016-04-281-5/+4
| | |
| * | Use byte indices instead of char indices for text runsMatt Brubeck2016-04-281-18/+22
| |/ | | | | | | | | | | | | Replace character indices with UTF-8 byte offsets throughout the code dealing with text shaping and breaking. This eliminates a lot of complexity when converting from one to the other, and interoperates better with the rest of the Rust ecosystem.
* / Remove extraneous script_chan parameter from Trusted::newKeith Yeung2016-04-281-4/+2
|/
* Implement HTMLTextArea.setSelectionRangeAlberto Corona2016-04-171-70/+16
|
* Auto merge of #10522 - KiChjang:input-cleanup, r=frewsxcvbors-servo2016-04-121-60/+49
|\ | | | | | | | | | | | | | | Various cleanups in HTMLInputElement <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10522) <!-- Reviewable:end -->
| * Remove get_ prefix for functions in LayoutHTMLInputElementHelpersKeith Yeung2016-04-111-13/+13
| |
| * Rename fn get_form_datum to form_datumKeith Yeung2016-04-111-1/+1
| |
| * Move check for mutability up as a guard clauseKeith Yeung2016-04-111-22/+19
| |
| * Rename fn mutable to is_mutableKeith Yeung2016-04-111-6/+6
| |
| * Use fn in_same_group where appropriateKeith Yeung2016-04-111-6/+2
| |
| * Rename get_radio_group_name to radio_group_nameKeith Yeung2016-04-111-8/+8
| |
| * Remove unused fn get_indeterminate_stateKeith Yeung2016-04-111-4/+0
| |
| * Rename get_value_mode to value_modeKeith Yeung2016-04-111-5/+5
| |
* | Issue #10491 add HTMLInputElement attributes that reflect content identicallyArnaud Marant2016-04-121-0/+61
|/ | | | it uses a new version of string-cache https://github.com/servo/string-cache/pull/148
* Remove `get_*` on getters as per RFC 0344.Corey Farwell2016-04-101-4/+4
| | | | | | https://github.com/rust-lang/rfcs/blob/master/text/0344-conventions-galore.md#gettersetter-apis https://github.com/servo/servo/issues/6224
* refactors entities from script_thread into script_runtimeRahul Sharma2016-04-061-2/+3
|
* Fix incremental reflow of text selection changesMatt Brubeck2016-04-011-10/+6
| | | | | Also replace force_relayout methods with direct Node::dirty calls, for clarity.
* Auto merge of #10019 - rebstar6:htmllabelclick, r=jdmbors-servo2016-03-301-4/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | Fix htmllabelelement click to activate correct element Address https://github.com/servo/servo/issues/9928 Pass on label click to the label element's labeled control <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10019) <!-- Reviewable:end -->
| * Fix HtmlLabelElement activation to run on correct elementRebecca2016-03-291-4/+0
| | | | | | | | Also removes old code that caused radio button clicks on disabled elements
* | Highlight selected text in input fieldsMatt Brubeck2016-03-241-19/+19
| | | | | | | | | | Fixes #9993. This does not yet allow stylesheets to set the selection colors; instead it uses a hard-coded orange background and white foreground.
* | Implement initial pieces of form validation.Sagar Muchhal2016-03-241-0/+3
|/
* Auto merge of #9930 - rebstar6:htmlclick, r=jdmbors-servo2016-03-111-2/+7
|\ | | | | | | | | | | | | | | | | | | | | | | Remove activatable element filter within HTMLElement#click() Address https://github.com/servo/servo/issues/6542 Ensure that click() calls are not limited to activatable elements. Also makes the isTrusted attribute false when synthetic click activation are called from a click() method (as per spec). <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9930) <!-- Reviewable:end -->
| * Call synthetic_click_activation for all clicksRebecca2016-03-101-2/+7
| | | | | | | | | | | | | | Moved synthetic_click_actiavtion out of Activatable trait so it can be called by all elements (not just activatable). Calls appropriately from click. Also updates the isdisabled check in click to check for all types of elements
* | Implement input.setSelectionRangeSaurav Sachidanand2016-03-101-0/+94
| |
* | Get input value IDL attribute matching specGreg Guthe2016-02-251-15/+112
|/ | | | Refs: https://github.com/servo/servo/issues/9455
* Implement RootedReference<T> for Option<JS<T>>Daniel Robertson2016-02-161-1/+1
| | | | | An implementation of RootedReference for Option<JS<T>> based off of other implementations of RootedReference for Option wrapped types.
* Issue #9561 Renamed *_thread_source to *_task_source and ThreadSource to ↵Kamil Muszyński2016-02-141-1/+1
| | | | TaskSource
* Auto merge of #9614 - paulrouget:inputEventBubbles, r=mbrubeckbors-servo2016-02-121-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | input event should bubble No test because: https://github.com/servo/servo/issues/9574#issuecomment-181558144 Fix #9574 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9614) <!-- Reviewable:end -->
| * input event should bubblePaul Rouget2016-02-121-1/+1
| |
* | Remove the global argument to EventTarget::{fire_event, fire_simple_event}.Ms2ger2016-02-081-6/+2
|/
* Update rust-selectorsEmilio Cobos Álvarez2016-02-031-1/+1
| | | | | This commits updates rust-selectors to use the generic parser, and as such it moves the element state into the style crate.
* Auto merge of #8983 - Manishearth:cursors, r=jdmbors-servo2016-01-111-0/+3
|\ | | | | | | | | | | | | | | | | | | | | Various textinput fixes - Currently the cursor sticks around if you click elsewhere. Now the text inputs are relayout-ed on blur. - Currently whitespace gets collapsed in text input (https://github.com/servo/servo/issues/8772). Not anymore. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8983) <!-- Reviewable:end -->
| * Remove virtual call and unconditionally dirty node on set_focus_stateManish Goregaokar2016-01-071-7/+0
| |
| * Relayout text input elements on blurManish Goregaokar2016-01-031-0/+10
| |