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.
This commit is contained in:
Matt Brubeck 2014-10-16 18:05:29 -07:00
parent 5858fccf87
commit 65a0d1fe9a
4 changed files with 142 additions and 14 deletions

View file

@ -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),