diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2016-06-04 16:01:13 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2016-06-04 16:04:35 +0200 |
commit | be334efe2fac39e0be29790ee06b00ddb652a40f (patch) | |
tree | cdad955c260962592d09f31c2510c5fb934d95d8 /components/script/dom/document.rs | |
parent | c87aa399ed082cd751b8947037a5ab16af604d7e (diff) | |
download | servo-be334efe2fac39e0be29790ee06b00ddb652a40f.tar.gz servo-be334efe2fac39e0be29790ee06b00ddb652a40f.zip |
Fix all the links to the UI Events spec
DOM3Events is no more.
Diffstat (limited to 'components/script/dom/document.rs')
-rw-r--r-- | components/script/dom/document.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index 9272c7f6da1..0897ccc24ae 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -577,7 +577,7 @@ impl Document { } /// Return the element that currently has focus. - // https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#events-focusevent-doc-focus + // https://w3c.github.io/uievents/#events-focusevent-doc-focus pub fn get_focused_element(&self) -> Option<Root<Element>> { self.focused.get() } @@ -706,7 +706,7 @@ impl Document { self.begin_focus_transaction(); } - // https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#event-type-click + // https://w3c.github.io/uievents/#event-type-click let client_x = client_point.x as i32; let client_y = client_point.y as i32; let clickCount = 1; @@ -728,7 +728,7 @@ impl Document { None); let event = event.upcast::<Event>(); - // https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#trusted-events + // https://w3c.github.io/uievents/#trusted-events event.set_trusted(true); // https://html.spec.whatwg.org/multipage/#run-authentic-click-activation-steps match mouse_event_type { @@ -1093,9 +1093,9 @@ impl Document { event.fire(target); let mut prevented = event.DefaultPrevented(); - // https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#keys-cancelable-keys + // https://w3c.github.io/uievents/#keys-cancelable-keys if state != KeyState::Released && props.is_printable() && !prevented { - // https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#keypress-event-order + // https://w3c.github.io/uievents/#keypress-event-order let event = KeyboardEvent::new(&self.window, DOMString::from("keypress"), true, |