Replace usage of old-style WHATWG spec links

This commit is contained in:
Corey Farwell 2015-10-10 11:55:09 -04:00
parent 9cccd98254
commit 85f2b6fc5b
96 changed files with 149 additions and 150 deletions

View file

@ -78,16 +78,16 @@ fn collect_text(element: &Element, value: &mut DOMString) {
}
impl HTMLOptionElementMethods for HTMLOptionElement {
// https://www.whatwg.org/html/#dom-option-disabled
// https://html.spec.whatwg.org/multipage#dom-option-disabled
make_bool_getter!(Disabled);
// https://www.whatwg.org/html/#dom-option-disabled
// https://html.spec.whatwg.org/multipage#dom-option-disabled
fn SetDisabled(&self, disabled: bool) {
let elem = ElementCast::from_ref(self);
elem.set_bool_attribute(&atom!("disabled"), disabled)
}
// https://www.whatwg.org/html/#dom-option-text
// https://html.spec.whatwg.org/multipage#dom-option-text
fn Text(&self) -> DOMString {
let element = ElementCast::from_ref(self);
let mut content = String::new();
@ -95,7 +95,7 @@ impl HTMLOptionElementMethods for HTMLOptionElement {
str_join(split_html_space_chars(&content), " ")
}
// https://www.whatwg.org/html/#dom-option-text
// https://html.spec.whatwg.org/multipage#dom-option-text
fn SetText(&self, value: DOMString) {
let node = NodeCast::from_ref(self);
node.SetTextContent(Some(value))