aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlformelement.rs
Commit message (Collapse)AuthorAgeFilesLines
* Rename fn get_form_datum to form_datumKeith Yeung2016-04-111-1/+1
|
* 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
* refactors entities from script_thread into script_runtimeRahul Sharma2016-04-061-1/+2
|
* Add task_source directoryKeith Yeung2016-03-101-5/+12
| | | | Use DOMManipulationTaskSource whenever possible
* Implement planned navigationKeith Yeung2016-02-181-9/+58
|
* Remove the global argument to EventTarget::{fire_event, fire_simple_event}.Ms2ger2016-02-081-12/+5
|
* Update HTMLFormElement.length to be of type unsigned longJoshua Holmer2016-01-221-2/+2
| | | | Fixes #9402
* HTMLFormElement::Elements should honor [SameObject] attributeCorey Farwell2016-01-101-2/+10
| | | | | | | Ideally, this would get tested by web-platform-tests, but that has yet to be implemented: https://github.com/w3c/web-platform-tests/issues/2462
* Implement HTMLFormElement::LengthCorey Farwell2016-01-101-0/+5
|
* Implement HTMLFormElement::ElementsCorey Farwell2016-01-101-0/+60
| | | | Fixes #8566
* task -> threadrohan.prinja2016-01-101-1/+1
|
* Rename fire_simple_event_params to fire_eventBrandon Fairchild2016-01-071-12/+12
| | | | Fixes #9180.
* Generate PartialEq automaticallyGuillaume Gomez2016-01-031-6/+0
|
* Fix a bunch of clippy lintsJohannes Linke2016-01-021-38/+32
|
* form submission for <textarea> and <select>Nicolas2015-12-301-11/+29
| | | | | | small changes from code review !child.get_disabled_state() becomes child.get_enabled_state()
* Auto merge of #9055 - simartin:issue_9042, r=Wafflespeanutbors-servo2015-12-241-1/+1
|\ | | | | | | | | | | | | | | | | | | Issue #9042: Report incorrect number of spaces around => in the style checker Fixes https://github.com/servo/servo/issues/9042 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9055) <!-- Reviewable:end -->
| * Issue #9042: Report incorrect number of spaces around => in the style checker.Simon Martin2015-12-231-1/+1
| |
* | Implement EventTarget::fire_simple_event and ↵Arthur Skobara2015-12-221-23/+19
|/ | | | EventTarget::fire_simple_event_params
* Use Url.join instead of UrlParser.base_url(...).parse (#9002)Mathieu Agopian2015-12-181-2/+1
|
* Silence warnings in htmlformelement.rs.Ms2ger2015-12-171-4/+3
|
* Remove big blob of commented codeKeith Yeung2015-12-161-65/+3
|
* Implement basic framework for static and interactive validation on formsKeith Yeung2015-12-151-19/+213
|
* Add comments for the "Constructing the form data set" algorithmArthur Skobara2015-12-141-2/+9
|
* Pass around event types as Atoms instead of StringsCorey Farwell2015-12-101-2/+2
| | | | | | `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.
* Auto merge of #8293 - simartin:issue_8113, r=jdmbors-servo2015-12-031-1/+2
|\ | | | | | | | | | | | | | | | | | | Issue #8113: Support file, about and data schemes as form action. Fix https://github.com/servo/servo/issues/8113 by supporting those schemes as form action and unit test the "about:blank" case <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8293) <!-- Reviewable:end -->
| * Issue #8113: Support file, about and data schemes as form action.Simon Martin2015-12-021-1/+2
| |
* | Remove unnecessary conversion to/from DOMString for localName.Eli Friedman2015-12-021-2/+2
|/
* Compute attribute name atoms at compile-time.Eli Friedman2015-11-271-7/+10
|
* Replaced DOMString constructor by conversion functions.Alan Jeffrey2015-11-121-4/+4
| | | | | | Replaced DOMString(...) by DOMString::from(...). Replaced ....0 by String::from(...). Removed any uses of .to_owner() in DOMString::from("...").
* Make DOMString a newtype around String, rather than a typedef.Ms2ger2015-11-041-4/+4
| | | | | | | | | | This should make it somewhat easier to experiment with alternative representations in the future. To reduce churn, this commit leaves the String field public, though. Also, this will allow us to use the default String type to represent the IDL USVString type, which explicitly forbids unpaired surrogates, ans as such is a better match to the Rust String type.
* Use DOMString::new() somewhat consistently.Ms2ger2015-11-041-1/+1
|
* Get rid of a bunch of explicit derefsDavid Zbarsky2015-11-031-10/+10
|
* rearrange imports to be in alphabetical orderrohan.prinja2015-10-301-2/+1
|
* replace InheritTypes imports with inheritance importsrohan.prinja2015-10-301-1/+1
|
* more refactoringrohan.prinja2015-10-301-2/+2
|
* move Castable into dom::bindings::inheritancerohan.prinja2015-10-301-1/+2
|
* Clean up the cast callsAnthony Ramine2015-10-211-20/+7
|
* Introduce trait CastableAnthony Ramine2015-10-211-21/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This trait is used to hold onto the downcast and upcast functions of all castable IDL interfaces. A castable IDL interface is one which either derives from or is derived by other interfaces. The deriving relation is represented by implementations of marker trait DerivedFrom<T: Castable> generated in InheritTypes. /^[ ]*use dom::bindings::codegen::InheritTypes::.*(Base|Cast|Derived)/ { /::[a-zA-Z]+(Base|Cast|Derived);/d s/([{ ])[a-zA-Z]+(Base|Cast|Derived), /\1/g s/([{ ])[a-zA-Z]+(Base|Cast|Derived), /\1/g s/, [a-zA-Z]+(Base|Cast|Derived)([},])/\2/g s/, [a-zA-Z]+(Base|Cast|Derived)([},])/\2/g /\{([a-zA-Z]+(Base|Cast|Derived))?\};$/d s/\{([a-zA-Z_]+)\};$/\1;/ } s/([a-zA-Z]+)Cast::from_ref\(\&?\**([a-zA-Z_]+)(\.r\(\))?\)/\2.upcast::<\1>()/g s/([a-zA-Z]+)Cast::from_ref\(\&?\**([a-zA-Z_]+)(\.[a-zA-Z_]+\(\))?\)/\2\3.upcast::<\1>()/g s/\(([a-zA-Z]+)Cast::from_ref\)/\(Castable::upcast::<\1>\)/g s/([a-zA-Z]+)Cast::from_root/Root::upcast::<\1>/g s/([a-zA-Z]+)Cast::from_layout_js\(\&([a-zA-Z_.]+)\)/\2.upcast::<\1>()/g s/([a-zA-Z]+)Cast::to_ref\(\&?\**([a-zA-Z_]+)(\.r\(\))?\)/\2.downcast::<\1>()/g s/([a-zA-Z]+)Cast::to_ref\(\&?\**([a-zA-Z_]+)(\.[a-zA-Z_]+\(\))?\)/\2\3.downcast::<\1>()/g s/\(([a-zA-Z]+)Cast::to_ref\)/\(Castable::downcast::<\1>\)/g s/([a-zA-Z]+)Cast::to_root/Root::downcast::<\1>/g s/([a-zA-Z]+)Cast::to_layout_js\(&?([a-zA-Z_.]+(\(\))?)\)/\2.downcast::<\1>()/g s/\.is_document\(\)/.is::<Document>()/g s/\.is_htmlanchorelement\(\)/.is::<HTMLAnchorElement>()/g s/\.is_htmlappletelement\(\)/.is::<HTMLAppletElement>()/g s/\.is_htmlareaelement\(\)/.is::<HTMLAreaElement>()/g s/\.is_htmlbodyelement\(\)/.is::<HTMLBodyElement>()/g s/\.is_htmlembedelement\(\)/.is::<HTMLEmbedElement>()/g s/\.is_htmlfieldsetelement\(\)/.is::<HTMLFieldSetElement>()/g s/\.is_htmlformelement\(\)/.is::<HTMLFormElement>()/g s/\.is_htmlframesetelement\(\)/.is::<HTMLFrameSetElement>()/g s/\.is_htmlhtmlelement\(\)/.is::<HTMLHtmlElement>()/g s/\.is_htmlimageelement\(\)/.is::<HTMLImageElement>()/g s/\.is_htmllegendelement\(\)/.is::<HTMLLegendElement>()/g s/\.is_htmloptgroupelement\(\)/.is::<HTMLOptGroupElement>()/g s/\.is_htmloptionelement\(\)/.is::<HTMLOptionElement>()/g s/\.is_htmlscriptelement\(\)/.is::<HTMLScriptElement>()/g s/\.is_htmltabledatacellelement\(\)/.is::<HTMLTableDataCellElement>()/g s/\.is_htmltableheadercellelement\(\)/.is::<HTMLTableHeaderCellElement>()/g s/\.is_htmltablerowelement\(\)/.is::<HTMLTableRowElement>()/g s/\.is_htmltablesectionelement\(\)/.is::<HTMLTableSectionElement>()/g s/\.is_htmltitleelement\(\)/.is::<HTMLTitleElement>()/g
* Remove explicit lifetimes which can be elided.Adam Szopa2015-10-211-3/+3
|
* Move Event States to |Element|.Bobby Holley2015-10-161-2/+4
| | | | | | Conceptually they belong there, rather than on |Node|. Fixes #7934.
* Explicitly customise flags of new nodes where neededAnthony Ramine2015-10-151-1/+1
| | | | | | | Given codegen now generates the various TypeId enums, it seems pointless to still have to write their respective values in every DOM struct inheriting from Node just to set the initial IS_IN_DOC flag in Document and IN_ENABLED_STATE in form controls.
* Generate all Derived implementations in codegenAnthony Ramine2015-10-141-13/+4
|
* Generate the TypeId enums in codegenAnthony Ramine2015-10-141-12/+10
|
* Refactor html form dataset collectionAnthony Urena2015-10-071-83/+40
| | | | | | Factor out FormDatum collection for <input> Improve early return logic for getting the FormDatum from an <input> Condense element type patterns
* Fix order of use statementsPhilipp Hartwig2015-09-301-1/+1
|
* Refactor FormControl traitPhilipp Hartwig2015-09-301-5/+9
| | | | | The trait is now implemented for HTMLFooElement instead of &HTMLFooElement and does no longer require an impl body.
* script: Stop copying the document URL.Patrick Walton2015-09-241-1/+2
|
* sorted the extern crate, mod & use declarationsRavi Shankar2015-09-241-1/+1
|
* Fix reported test-tidy errors for unmerged import blocksBrandon Fairchild2015-09-191-3/+2
| | | | This merges import blocks that were reported by tidy as unmerged.
* Auto merge of #7452 - nox:cleanup-attributes, r=noxbors-servo2015-09-021-1/+1
|\ | | | | | | | | | | | | | | | | | | Introduce VirtualMethods::attribute_mutated() <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7452) <!-- Reviewable:end -->