mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Auto merge of #15011 - nox:load-fixes, r=jdm
Various script loading fixes <!-- 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/15011) <!-- Reviewable:end -->
This commit is contained in:
commit
c2d2c38b0f
21 changed files with 31 additions and 110 deletions
|
@ -680,6 +680,17 @@ impl HTMLScriptElementMethods for HTMLScriptElement {
|
|||
// https://html.spec.whatwg.org/multipage/#dom-script-charset
|
||||
make_setter!(SetCharset, "charset");
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-script-async
|
||||
fn Async(&self) -> bool {
|
||||
self.non_blocking.get() || self.upcast::<Element>().has_attribute(&local_name!("async"))
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-script-async
|
||||
fn SetAsync(&self, value: bool) {
|
||||
self.non_blocking.set(false);
|
||||
self.upcast::<Element>().set_bool_attribute(&local_name!("async"), value);
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-script-defer
|
||||
make_bool_getter!(Defer, "defer");
|
||||
// https://html.spec.whatwg.org/multipage/#dom-script-defer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue