From 41f522ace1518f7f6f22f2e227350b0bdf78e62b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20Go=C5=82e=CC=A8biowski?= Date: Mon, 30 Jun 2014 18:13:57 +0200 Subject: [PATCH] Selector: Remove "#" exception for identifier tokens Port Sizzle test change from: https://github.com/jquery/sizzle/commit/f204a6112216f31685717d9fc1bf6cabf42b2ef1 (cherry-picked from 86e62d8b37ff9ad40e7c21c2c0c440a9cdfc550e) --- test/unit/selector.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/selector.js b/test/unit/selector.js index c4c760522..912bfb40a 100644 --- a/test/unit/selector.js +++ b/test/unit/selector.js @@ -166,8 +166,8 @@ test("attributes", function() { t( "Attribute Equals Number", "#qunit-fixture li[tabIndex=-1]", ["foodWithNegativeTabIndex"] ); document.getElementById("anchor2").href = "#2"; - t( "href Attribute", "p a[href^=#]", ["anchor2"] ); - t( "href Attribute", "p a[href*=#]", ["simon1", "anchor2"] ); + t( "href Attribute", "p a[href^='#']", ["anchor2"] ); + t( "href Attribute", "p a[href*='#']", ["simon1", "anchor2"] ); t( "for Attribute", "form label[for]", ["label-for"] ); t( "for Attribute in form", "#form [for=action]", ["label-for"] ); -- 2.39.5