pub fn run_a_callback<D, R>(
global: &<D as DomTypes>::GlobalScope,
f: impl FnOnce() -> R,
) -> Rwhere
D: DomTypes,Expand description
Wrapper that pushes and pops entries from the script settings stack.
https://html.spec.whatwg.org/multipage/#prepare-to-run-a-callback https://html.spec.whatwg.org/multipage/#clean-up-after-running-a-callback