aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlscriptelement.rs
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2015-10-10 12:07:10 -0400
committerCorey Farwell <coreyf@rwell.org>2015-10-10 12:07:10 -0400
commit9b68d715de486404ce844df70d58f5a0804416d5 (patch)
tree3dbe45ca282de320830a87fa95602ae512feb1e3 /components/script/dom/htmlscriptelement.rs
parent85f2b6fc5bd3d51ebb7a091fe2776fdd1cfbbb33 (diff)
downloadservo-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/htmlscriptelement.rs')
-rw-r--r--components/script/dom/htmlscriptelement.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/htmlscriptelement.rs b/components/script/dom/htmlscriptelement.rs
index 19014b2005d..23328eadce5 100644
--- a/components/script/dom/htmlscriptelement.rs
+++ b/components/script/dom/htmlscriptelement.rs
@@ -583,12 +583,12 @@ impl HTMLScriptElementMethods for HTMLScriptElement {
// https://html.spec.whatwg.org/multipage/#dom-script-src
make_setter!(SetSrc, "src");
- // https://html.spec.whatwg.org/multipage#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://html.spec.whatwg.org/multipage#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))