mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Replace usage of old-style WHATWG spec links
This commit is contained in:
parent
9cccd98254
commit
85f2b6fc5b
96 changed files with 149 additions and 150 deletions
|
@ -107,7 +107,7 @@ impl HTMLScriptElement {
|
|||
|
||||
|
||||
/// Supported script types as defined by
|
||||
/// <https://whatwg.org/html/#support-the-scripting-language>.
|
||||
/// <https://html.spec.whatwg.org/multipage/#support-the-scripting-language>.
|
||||
static SCRIPT_JS_MIMES: StaticStringVec = &[
|
||||
"application/ecmascript",
|
||||
"application/javascript",
|
||||
|
@ -569,7 +569,7 @@ impl VirtualMethods for HTMLScriptElement {
|
|||
s.cloning_steps(copy, maybe_doc, clone_children);
|
||||
}
|
||||
|
||||
// https://whatwg.org/html/#already-started
|
||||
// https://html.spec.whatwg.org/multipage/#already-started
|
||||
if self.already_started.get() {
|
||||
let copy_elem = HTMLScriptElementCast::to_ref(copy).unwrap();
|
||||
copy_elem.mark_already_started();
|
||||
|
@ -583,12 +583,12 @@ impl HTMLScriptElementMethods for HTMLScriptElement {
|
|||
// https://html.spec.whatwg.org/multipage/#dom-script-src
|
||||
make_setter!(SetSrc, "src");
|
||||
|
||||
// https://www.whatwg.org/html/#dom-script-text
|
||||
// https://html.spec.whatwg.org/multipage#dom-script-text
|
||||
fn Text(&self) -> DOMString {
|
||||
Node::collect_text_contents(NodeCast::from_ref(self).children())
|
||||
}
|
||||
|
||||
// https://www.whatwg.org/html/#dom-script-text
|
||||
// https://html.spec.whatwg.org/multipage#dom-script-text
|
||||
fn SetText(&self, value: DOMString) {
|
||||
let node = NodeCast::from_ref(self);
|
||||
node.SetTextContent(Some(value))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue