aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmltextareaelement.rs
Commit message (Collapse)AuthorAgeFilesLines
* Solving merge conficts related to the html5ever_atoms -> html5ever changeChristian Poveda2017-05-031-1/+1
|\
| * Upgrade to html5ever 0.16Simon Sapin2017-05-021-1/+1
| |
* | Changed all prefixes from DOMString to the atomic Prefix from html5everChristian Poveda2017-05-031-3/+3
|/
* Implement the form owner conceptMukilan Thiyagarajan2017-03-151-3/+21
|
* Make #[dom_struct] a proc_macro attributeAnthony Ramine2017-02-241-0/+1
|
* Properly insert text in document when parsingAnthony Ramine2017-01-071-0/+7
| | | | | | | If the last child of a node is a Text child and we are inserting text in that node, we need to append it to that Text child. Doing that means that HTMLStyleElement::children_changed gets called less frequently, but that's not a problem during parsing thanks to the pop hook.
* Fire 'input' event after 'keypress' in input and textarea elementsRavi Shankar2016-12-271-11/+10
|
* Allow 'keypress' event to emerge from input and textarea elementsRavi Shankar2016-12-271-2/+2
|
* Remove and allow some dead code.Ms2ger2016-12-221-5/+0
|
* Show the placeholder text for textarea elements.Corey Farwell2016-12-141-2/+31
| | | | | | Fixes https://github.com/servo/servo/issues/10552. All this logic was taken from htmlinputelement.rs.
* Auto merge of #13969 - bbansalWolfPack:master, r=jdmbors-servo2016-11-251-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | html form validation initial steps with test html file <!-- Please describe your changes on the following line: --> Added code for initial steps in html form validation. 1. Added methods for trait validatable 2. implemented stub methods for elements like HTMLInputElement, HTMLButtonElement, etc <!-- 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="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13969) <!-- Reviewable:end -->
| * html form validation initial steps with test html file, added stub methods, ↵Bhavya Bansal2016-11-231-0/+1
| | | | | | | | added code to handle validations
* | Update to string-cache 0.3Simon Sapin2016-11-031-10/+10
|/
* Remove intrinsic Root::r()Anthony Ramine2016-10-111-2/+2
|
* Introduce GlobalScope::constellation_chanAnthony Ramine2016-10-061-1/+2
|
* Implement minlength for text inputsTaryn Hill2016-09-211-1/+1
|
* Most of the code refactoring needed to be done is done with this commit.Arthur Marble2016-09-181-4/+4
|
* Reorder `use` statementsUK9922016-09-091-2/+2
|
* Inline DOM element creation into box expressions in components/script/dom/Kuba Birecki2016-07-141-2/+3
|
* Make all task source runnables cancellableConnor Brewster2016-07-131-2/+4
| | | | Implement all Runnable methods on CancellableRunnable to redirect to their inner runnable
* Stop re-exporting AttrValue.Ms2ger2016-06-071-1/+2
|
* Move DOMString back to scriptAnthony Ramine2016-05-241-3/+3
| | | | This entirely removes the 'non-geckolib' feature of the util crate.
* 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-4/+10
|
* Auto merge of #10834 - yoava333:master, r=SimonSapinbors-servo2016-04-291-1/+18
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/+18
| | | | | | | | partial fix for https://github.com/servo/servo/issues/10732
* | Reduce channel cloning.Ms2ger2016-04-291-1/+1
| |
* | Replace range::Range with std::ops::Range in scriptMatt Brubeck2016-04-281-1/+1
| |
* | Use byte indices instead of char indices for text runsMatt Brubeck2016-04-281-7/+6
|/ | | | | | | 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.
* Implement HTMLTextArea.setSelectionRangeAlberto Corona2016-04-171-2/+45
|
* Remove `get_*` on getters as per RFC 0344.Corey Farwell2016-04-101-1/+1
| | | | | | https://github.com/rust-lang/rfcs/blob/master/text/0344-conventions-galore.md#gettersetter-apis https://github.com/servo/servo/issues/6224
* Auto merge of #10347 - mbrubeck:incremental-selection, r=pcwaltonbors-servo2016-04-021-10/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | Fix incremental reflow of text selection changes r? @emilio or @pcwalton CC @paulrouget: This fixes a bug in the browser.html URL bar auto-completion. <!-- 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/10347) <!-- Reviewable:end -->
| * Fix incremental reflow of text selection changesMatt Brubeck2016-04-011-10/+3
| | | | | | | | | | Also replace force_relayout methods with direct Node::dirty calls, for clarity.
* | Add a spec links for <textarea> magic number constants.Corey Farwell2016-03-311-0/+3
|/
* Highlight selected text in input fieldsMatt Brubeck2016-03-241-3/+4
| | | | | 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
|
* 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.
* Relayout text input elements on blurManish Goregaokar2016-01-031-3/+8
|
* Auto merge of #9123 - karyon:clippy_cleanup, r=Manishearthbors-servo2016-01-031-4/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a bunch of clippy lints This fixes about 130 clippy lints. Let me know if i should split up the commit. I wasn't sure about some of the changes, especially map_or instead of map(...).unwrap_or(...) and if let instead of single arm match were not always a strict improvement in my opinion, but i'll leave that decision to the reviewer :) There are about 150 lints left which i thought were clippy bugs or i didn't know how to fix. cc @Manishearth <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9123) <!-- Reviewable:end -->
| * Fix a bunch of clippy lintsJohannes Linke2016-01-021-4/+2
| |
* | De-duplicate input event send codeChad Kimes2016-01-021-12/+2
| |
* | Add 'input' event for HTMLInputElementChad Kimes2016-01-021-27/+5
|/
* Remove fields with parsed attribute values on HTMLTextAreaElementCorey Farwell2015-12-301-29/+17
| | | | https://github.com/servo/servo/issues/7863
* Introduce UnbindContextAnthony Ramine2015-12-131-5/+3
| | | | | This holds the context that describes the original node that was removed from a tree when unbinding from a tree.
* Remove from Trusted::new an unnecessary argumentArthur Skobara2015-12-121-1/+1
|
* Pass around event types as Atoms instead of StringsCorey Farwell2015-12-101-1/+1
| | | | | | `Event` internally stores the `type` as an `Atom`, and we're `String`s everywhere, which can cause unnecessary allocations to occur since they'll end up as `Atom`s anyways.
* Move ScriptMsg from msg crate into script_traitsTomas Cernaj2015-12-091-1/+1
|
* Split fn script_chan into 5 different task channel fnKeith Yeung2015-12-061-1/+1
|