aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlinputelement.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* Add ability to WPT-test file uploads and fetches, fixes #12322Zhen Zhang2016-07-091-59/+85
|
* Move util::str to styleAnthony Ramine2016-07-051-1/+1
|
* Auto merge of #11875 - izgzhen:file-manager-backend, r=Manishearthbors-servo2016-07-041-2/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Integration and improvements of File API backends Basically three major changes: 1. More complete origin check in `FileManagerThreadMsg` 2. Add reference counting logic to file manage store and script API 3. Integrate the support of slicing r? @Manishearth --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/11875) <!-- Reviewable:end -->
| * Integration and improvements of File API backendsZhen Zhang2016-07-041-2/+3
| | | | | | | | | | | | 1. More complete origin check in FileManagerThreadMsg 2. Add reference counting logic to file manage store and script API 3. Integrate the support of slicing
* | Emit change event when files are selectedZhen Zhang2016-07-031-1/+19
|/
* Fix file-type input elementZhen Zhang2016-06-301-0/+14
|
* Implement filter for file-type input's accept attributeZhen Zhang2016-06-201-6/+19
|
* filepickerZhen Zhang2016-06-141-4/+13
|
* Stop re-exporting AttrValue.Ms2ger2016-06-071-1/+2
|
* Auto merge of #11572 - nox:placeholder-shown, r=SimonSapinbors-servo2016-06-061-7/+24
|\ | | | | | | | | | | | | | | Implement :placeholder-shown (fixes #10561) <!-- 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/11572) <!-- Reviewable:end -->
| * Implement :placeholder-shown (fixes #10561)Anthony Ramine2016-06-031-7/+24
| |
* | 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