aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlelement.rs
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2015-04-16 21:37:56 -0400
committerCorey Farwell <coreyf@rwell.org>2015-04-16 22:39:25 -0400
commit8b08c6f43fd93c381d843ccce4e9fbaec9d3fa28 (patch)
tree6e757659a603705ab3db36ebeeb7de503af84bc4 /components/script/dom/htmlelement.rs
parent4fd4370a9680f4845f05efd43ce9cb26c7433f05 (diff)
downloadservo-8b08c6f43fd93c381d843ccce4e9fbaec9d3fa28.tar.gz
servo-8b08c6f43fd93c381d843ccce4e9fbaec9d3fa28.zip
Don't link to specific WHATWG multipage page
"Links to the multipage version of the specification are unfortunately likely to break over time." -- https://html.spec.whatwg.org/multipage/asefij.html This commit removes all references to the specific pages when viewing WHATWG using multipage mode. I went through all these links and they redirect fine. Regex used to generate this commit: `s_whatwg.org/multipage/.*#_whatwg.org/multipage/#_g`
Diffstat (limited to 'components/script/dom/htmlelement.rs')
-rw-r--r--components/script/dom/htmlelement.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/components/script/dom/htmlelement.rs b/components/script/dom/htmlelement.rs
index a8043d27e18..84f1d698cdf 100644
--- a/components/script/dom/htmlelement.rs
+++ b/components/script/dom/htmlelement.rs
@@ -123,7 +123,7 @@ impl<'a> HTMLElementMethods for JSRef<'a, HTMLElement> {
}
}
- // https://html.spec.whatwg.org/multipage/interaction.html#dom-click
+ // https://html.spec.whatwg.org/multipage/#dom-click
fn Click(self) {
let maybe_input: Option<JSRef<HTMLInputElement>> = HTMLInputElementCast::to_ref(self);
if let Some(i) = maybe_input {
@@ -136,10 +136,10 @@ impl<'a> HTMLElementMethods for JSRef<'a, HTMLElement> {
element.as_maybe_activatable().map(|a| a.synthetic_click_activation(false, false, false, false));
}
- // https://html.spec.whatwg.org/multipage/interaction.html#dom-focus
+ // https://html.spec.whatwg.org/multipage/#dom-focus
fn Focus(self) {
// TODO: Mark the element as locked for focus and run the focusing steps.
- // https://html.spec.whatwg.org/multipage/interaction.html#focusing-steps
+ // https://html.spec.whatwg.org/multipage/#focusing-steps
let element: JSRef<Element> = ElementCast::from_ref(self);
let document = document_from_node(self).root();
let document = document.r();
@@ -148,14 +148,14 @@ impl<'a> HTMLElementMethods for JSRef<'a, HTMLElement> {
document.commit_focus_transaction();
}
- // https://html.spec.whatwg.org/multipage/interaction.html#dom-blur
+ // https://html.spec.whatwg.org/multipage/#dom-blur
fn Blur(self) {
// TODO: Run the unfocusing steps.
let node: JSRef<Node> = NodeCast::from_ref(self);
if !node.get_focus_state() {
return;
}
- // https://html.spec.whatwg.org/multipage/interaction.html#unfocusing-steps
+ // https://html.spec.whatwg.org/multipage/#unfocusing-steps
let document = document_from_node(self).root();
document.r().begin_focus_transaction();
// If `request_focus` is not called, focus will be set to None.