aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlscriptelement.rs
Commit message (Collapse)AuthorAgeFilesLines
* Reduce max line length from 150 to 120 charactersCorey Farwell2015-05-241-2/+5
| | | | Part of https://github.com/servo/servo/issues/6041
* Update test expectations. Mark script loads as complete when the response is ↵Josh Matthews2015-05-211-2/+8
| | | | complete.
* Make external script sources load asynchronously, yet still block further ↵Josh Matthews2015-05-201-18/+83
| | | | parsing. Hook up document loading to async networking events.
* Implement a DocumentLoader type that tracks pending loads and notifies the ↵Josh Matthews2015-05-111-2/+5
| | | | script task when the queue is empty. Dispatch the document load event based on the DocumentLoader's notification.
* Uniformise root() methodsAnthony Ramine2015-04-281-1/+2
| | | | | They now live in traits Rootable, OptionalOptionalRootable, OptionalRootable and ResultRootable.
* Fix some no_move errorsManish Goregaokar2015-04-281-2/+2
|
* Remove as_slice() calls from script.Ms2ger2015-04-261-2/+2
|
* Don't link to specific WHATWG multipage pageCorey Farwell2015-04-161-6/+6
| | | | | | | | | | | | | | "Links to the multipage version of the specification are unfortunately likely to break over time." -- https://html.spec.whatwg.org/multipage/asefij.html This commit removes all references to the specific pages when viewing WHATWG using multipage mode. I went through all these links and they redirect fine. Regex used to generate this commit: `s_whatwg.org/multipage/.*#_whatwg.org/multipage/#_g`
* Update WHATWG links to use HTTPSCorey Farwell2015-04-131-4/+4
| | | | | | | | | | | | | | 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' ```
* Use a Temporary iterator in Node::collect_text_contents()Anthony Ramine2015-04-071-2/+1
|
* Make Element::get_attribute() take its namespace by referenceAnthony Ramine2015-04-061-6/+6
|
* Split out shared networking code into net_traits crateGilles Leblanc2015-04-031-1/+1
| | | | Fixes #4476
* Rewrite NodeChildrenIterator to return Temporary.Ms2ger2015-04-021-1/+1
|
* Handle the for and event attributes on a script element correctly when one ↵Keith Yeung2015-04-011-13/+14
| | | | of them is present (fixes #5258).
* Use box syntax instead of Box::new()Brandon DeRosier2015-03-291-4/+4
| | | | Closes #5417
* Use new `if let` syntax wherever possible. Fixes #4153.Zack Slayton2015-03-101-12/+8
|
* auto merge of #5054 : psdh/servo/scriptimplementation, r=jdmbors-servo2015-03-061-9/+26
|\ | | | | | | Fixes #4089
| * implement missing steps from "prepare a script" algorithmPrabhjyot Singh Sodhi2015-03-061-9/+26
| | | | | | | | Fixes #4089
* | Move everything unrelated to the frame tree out of Page and into Document or ↵Josh Matthews2015-03-031-4/+3
|/ | | | Window. Reduce the API surface of Page to a bare minimum to allow for easier future removal.
* Implement Document.currentScriptJames Gilbertson2015-02-271-10/+9
|
* Implement 'beforescriptexecute' and 'afterscriptexecute' events.James Gilbertson2015-02-251-21/+52
| | | | Spec: https://html.spec.whatwg.org/multipage/scripting.html#execute-the-script-block, sections 2.b.2 & 2.b.9
* Split the 'Execute a script block' code out of prepare().Ms2ger2015-02-231-44/+128
| | | | | | | This also adds comments for missing steps. The only change in behaviour should be the debug message when an external script fails to load.
* Introduce dom::htmlscriptelement::EventDispatcher.Tetsuharu OHZEKI2015-02-231-10/+19
|
* Fixing Intermittent failure in pages with timersPrabhjyot Singh Sodhi2015-02-221-2/+2
| | | | Fixes #4923
* auto merge of #4939 : KiChjang/servo/script-element-error-events, r=jdmbors-servo2015-02-211-3/+37
|\ | | | | | | Fixes #4506
| * Script elements now fire async error events (fixes #4506)Keith Yeung2015-02-211-3/+37
| |
* | implementing step 12 of 'prepare a script' algorithmPrabhjyot Singh Sodhi2015-02-211-2/+18
|/
* Import net as net rather than servo_net.Ms2ger2015-02-101-1/+1
|
* Initialize trusted-ness of DOM events properlyGilles Leblanc2015-02-031-3/+2
| | | | Fixes #3740
* Import the util crate as util rather than servo_util.Ms2ger2015-01-291-1/+1
| | | | | | | | This used to conflict with the util crate from the standard library, which has long since been removed. The import in layout has not been changed because of a conflict with the util mod there.
* Don't shadow lifetimes in script.Ms2ger2015-01-281-1/+1
|
* Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev.Josh Matthews2015-01-281-4/+4
|
* Move to to_owned rather than into_string.Ms2ger2015-01-201-1/+2
| | | | into_string has been removed from Rust.
* fixup! Make script load event asynchronous for internal scriptsTetsuharu OHZEKI2015-01-111-1/+1
|
* Make script load event asynchronous for internal scriptsTetsuharu OHZEKI2015-01-111-0/+28
|
* Add the enum to describe the script origin.Tetsuharu OHZEKI2015-01-111-3/+8
|
* Fix #3936 – {Window,WorkerGlobalScope}.set{Timeout,Interval}(DOMString)Guillaume Bort2015-01-071-2/+2
|
* auto merge of #4495 : MeghaGupta/servo/typeid, r=Ms2gerbors-servo2015-01-041-4/+5
|\
| * Add HTMLElementTypeId enum (fixes #3625)Megha Gupta2015-01-021-4/+5
| |
* | Fix obsolete format traits.Ms2ger2015-01-021-2/+2
| | | | | | | | They are to be removed from the language in the next rust upgrade.
* | Remove unsound Root::deref() calls in HTML elements.Ms2ger2015-01-011-2/+3
| |
* | Replace Root::deref() calls by Root::r() calls where possible.Ms2ger2015-01-011-10/+10
| | | | | | | | This changes those calls that were already sound.
* | Replace the remaining to_string calls by into_string calls.Ms2ger2014-12-311-1/+1
|/
* Remove manual impls of Reflectors (autogen)Manish Goregaokar2014-12-271-6/+0
| | | | | | | | | Obtained via: `find . -maxdepth 1 -type f -print0 | xargs -0 sed -z -i "s/\\nimpl Reflectable for[^{]*{[^}]*}[^}]*}\\n//"` `find . -maxdepth 1 -type f -print0 |xargs -0 grep -lZ dom_struct | xargs -0 grep -LZ "reflector()\\|Reflector::new" |xargs -0 sed -z -i "s/use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};/use dom::bindings::utils::reflect_dom_object;/"` followed by semi-automated removal of leftover imports
* update to namespaced enums without re-exportsEduard Burtescu2014-12-191-2/+2
|
* update past rustup and use DoesNotBubble instead of BubblesEduard Burtescu2014-12-191-5/+5
|
* Trigger a load event after evaluating a <script>.Eduard Burtescu2014-12-191-0/+11
|
* Update rustc to revision 3dcd2157403163789aaf21a9ab3c4d30a7c6494d.Ms2ger2014-12-171-10/+9
|
* Implement the HTMLScriptElement.src setterMatt Brubeck2014-12-041-4/+4
| | | | Fixes #1113.
* Lower case the type attribute before checking if it's JSClaes 'Letharion' Gyllensvärd2014-11-181-2/+4
|