diff options
author | Corey Farwell <coreyf@rwell.org> | 2015-10-10 12:07:10 -0400 |
---|---|---|
committer | Corey Farwell <coreyf@rwell.org> | 2015-10-10 12:07:10 -0400 |
commit | 9b68d715de486404ce844df70d58f5a0804416d5 (patch) | |
tree | 3dbe45ca282de320830a87fa95602ae512feb1e3 /components/script/dom/htmloptionelement.rs | |
parent | 85f2b6fc5bd3d51ebb7a091fe2776fdd1cfbbb33 (diff) | |
download | servo-9b68d715de486404ce844df70d58f5a0804416d5.tar.gz servo-9b68d715de486404ce844df70d58f5a0804416d5.zip |
Explicitly place '/' before fragment for multipage spec links
This prevents us from 301 redirecting, which could cause the fragment to
get lost
Diffstat (limited to 'components/script/dom/htmloptionelement.rs')
-rw-r--r-- | components/script/dom/htmloptionelement.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/htmloptionelement.rs b/components/script/dom/htmloptionelement.rs index 22358488c67..337e307f046 100644 --- a/components/script/dom/htmloptionelement.rs +++ b/components/script/dom/htmloptionelement.rs @@ -78,16 +78,16 @@ fn collect_text(element: &Element, value: &mut DOMString) { } impl HTMLOptionElementMethods for HTMLOptionElement { - // https://html.spec.whatwg.org/multipage#dom-option-disabled + // https://html.spec.whatwg.org/multipage/#dom-option-disabled make_bool_getter!(Disabled); - // https://html.spec.whatwg.org/multipage#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://html.spec.whatwg.org/multipage#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://html.spec.whatwg.org/multipage#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)) |