aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/parse
diff options
context:
space:
mode:
authorMatt Brubeck <mbrubeck@limpet.net>2014-10-16 18:05:29 -0700
committerMatt Brubeck <mbrubeck@limpet.net>2014-10-29 14:30:42 -0700
commit65a0d1fe9a14e09b675cc24cb59c9aebf1615020 (patch)
tree0ca47c82edcc96f91761f1777b94a79a50dc6745 /components/script/parse
parent5858fccf873ce30896def4f58aa8c67d1ddd09f1 (diff)
downloadservo-65a0d1fe9a14e09b675cc24cb59c9aebf1615020.tar.gz
servo-65a0d1fe9a14e09b675cc24cb59c9aebf1615020.zip
Infrastructure for synchronous script loading
This implements the parts of the "prepare a script element" algorithm that are required for synchronous scripts. It also adds some infrastructure for future support of the `async` and `defer` attributes.
Diffstat (limited to 'components/script/parse')
-rw-r--r--components/script/parse/html.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/parse/html.rs b/components/script/parse/html.rs
index 28f13562619..39001fe8f7f 100644
--- a/components/script/parse/html.rs
+++ b/components/script/parse/html.rs
@@ -233,7 +233,7 @@ pub fn build_element_from_tag(name: QualName,
atom!("ruby") => make!(HTMLElement),
atom!("s") => make!(HTMLElement),
atom!("samp") => make!(HTMLElement),
- atom!("script") => make!(HTMLScriptElement),
+ atom!("script") => make!(HTMLScriptElement, true),
atom!("section") => make!(HTMLElement),
atom!("select") => make!(HTMLSelectElement),
atom!("small") => make!(HTMLElement),