aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dom_tests
diff options
context:
space:
mode:
authorVincent Bernat2014-08-05 09:11:37 +0200
committerVincent Bernat2014-08-05 09:14:30 +0200
commit17d7b88ee05ee940404fef5bb605c9b7665b15b8 (patch)
tree4226b68a4065746d70e997b764b3267b7a282939 /tests/dom_tests
parentc27961a1700cdbcbf90d53420b1df304988d6c5d (diff)
downloadvimium-17d7b88ee05ee940404fef5bb605c9b7665b15b8.tar.bz2
Match mixed-case relationship links in goNext/goPrevious
Link types are case-insensitive: http://www.w3.org/TR/html5/links.html#linkTypes This should fix #1115.
Diffstat (limited to 'tests/dom_tests')
-rw-r--r--tests/dom_tests/dom_tests.coffee8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/dom_tests/dom_tests.coffee b/tests/dom_tests/dom_tests.coffee
index 145b5866..0b2a9d89 100644
--- a/tests/dom_tests/dom_tests.coffee
+++ b/tests/dom_tests/dom_tests.coffee
@@ -230,6 +230,14 @@ context "Find prev / next links",
goNext()
assert.equal '#first', window.location.hash
+ should "match mixed case link relation", ->
+ document.getElementById("test-div").innerHTML = """
+ <link rel='Next' href='#first'>
+ """
+ goNext()
+ assert.equal '#first', window.location.hash
+
+
createLinks = (n) ->
for i in [0...n] by 1
link = document.createElement("a")