mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Explicitly place '/' before fragment for multipage spec links
This prevents us from 301 redirecting, which could cause the fragment to get lost
This commit is contained in:
parent
85f2b6fc5b
commit
9b68d715de
97 changed files with 152 additions and 152 deletions
|
@ -291,7 +291,7 @@ impl Window {
|
|||
}
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage#atob
|
||||
// https://html.spec.whatwg.org/multipage/#atob
|
||||
pub fn base64_btoa(input: DOMString) -> Fallible<DOMString> {
|
||||
// "The btoa() method must throw an InvalidCharacterError exception if
|
||||
// the method's first argument contains any character whose code point
|
||||
|
@ -311,7 +311,7 @@ pub fn base64_btoa(input: DOMString) -> Fallible<DOMString> {
|
|||
}
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage#atob
|
||||
// https://html.spec.whatwg.org/multipage/#atob
|
||||
pub fn base64_atob(input: DOMString) -> Fallible<DOMString> {
|
||||
// "Remove all space characters from input."
|
||||
// serialize::base64::from_base64 ignores \r and \n,
|
||||
|
@ -479,7 +479,7 @@ impl WindowMethods for Window {
|
|||
self.Window()
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage#dom-frames
|
||||
// https://html.spec.whatwg.org/multipage/#dom-frames
|
||||
fn Frames(&self) -> Root<Window> {
|
||||
self.Window()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue