Center docs again
This commit is contained in:
parent
a8e25b739b
commit
94774e73b0
3 changed files with 5 additions and 5 deletions
|
|
@ -37,8 +37,8 @@ o.spec("route", function() {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
void [{protocol: "http:", hostname: "localhost"}, {protocol: "file:", hostname: "/"}].forEach(function(env) {
|
void [{protocol: "http:", hostname: "localhost"}, {protocol: "file:", hostname: "/"}, {protocol: "http:", hostname: "ööö"}].forEach(function(env) {
|
||||||
void ["#", "?", "", "#!", "?!", "/foo"].forEach(function(prefix) {
|
void ["#", "?", "", "#!", "?!", "/foo", "/föö"].forEach(function(prefix) {
|
||||||
o.spec("using prefix `" + prefix + "` starting on " + env.protocol + "//" + env.hostname, function() {
|
o.spec("using prefix `" + prefix + "` starting on " + env.protocol + "//" + env.hostname, function() {
|
||||||
var $window, root, mountRedraw, route, throttleMock
|
var $window, root, mountRedraw, route, throttleMock
|
||||||
var nextID = 0
|
var nextID = 0
|
||||||
|
|
@ -118,7 +118,7 @@ o.spec("route", function() {
|
||||||
o(root.firstChild.nodeName).equals("DIV")
|
o(root.firstChild.nodeName).equals("DIV")
|
||||||
})
|
})
|
||||||
|
|
||||||
o("resolves to route w/ escaped unicode", function() {
|
o("resolves to route with escaped unicode", function() {
|
||||||
$window.location.href = prefix + "/%C3%B6?%C3%B6=%C3%B6"
|
$window.location.href = prefix + "/%C3%B6?%C3%B6=%C3%B6"
|
||||||
route(root, "/ö", {
|
route(root, "/ö", {
|
||||||
"/ö" : {
|
"/ö" : {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
body {background:white;-webkit-text-size-adjust: 100%;}
|
body {background:white;-webkit-text-size-adjust: 100%;}
|
||||||
body,table,h5 {font-weight:normal;font-size:16px;font-family:'Open Sans',sans-serif;}
|
body,table,h5 {font-weight:normal;font-size:16px;font-family:'Open Sans',sans-serif;}
|
||||||
header,main {max-width:1000px;}
|
body>header,body>main {margin: auto;max-width:1000px;}
|
||||||
header section {position:absolute;width:250px;}
|
header section {position:absolute;width:250px;}
|
||||||
nav a {border-left:1px solid #ddd;padding:0 10px;}
|
nav a {border-left:1px solid #ddd;padding:0 10px;}
|
||||||
nav a:first-child {border:0;padding-left:0;}
|
nav a:first-child {border:0;padding-left:0;}
|
||||||
|
|
|
||||||
|
|
@ -462,7 +462,7 @@ module.exports = function(options) {
|
||||||
if (!this.hasAttribute("href")) return ""
|
if (!this.hasAttribute("href")) return ""
|
||||||
// HACK: if it's valid already, there's nothing to implement.
|
// HACK: if it's valid already, there's nothing to implement.
|
||||||
var value = this.attributes.href.value
|
var value = this.attributes.href.value
|
||||||
if (validURLRegex.test(value)) return value
|
if (validURLRegex.test(encodeURI(value))) return value
|
||||||
}
|
}
|
||||||
return "[FIXME implement]"
|
return "[FIXME implement]"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue