]> source.dussan.org Git - jquery.git/commitdiff
Selector: Remove "#" exception for identifier tokens
authorMichał Gołębiowski <m.goleb@gmail.com>
Mon, 30 Jun 2014 16:13:57 +0000 (18:13 +0200)
committerMichał Gołębiowski <m.goleb@gmail.com>
Mon, 30 Jun 2014 16:17:11 +0000 (18:17 +0200)
Port Sizzle test change from:
https://github.com/jquery/sizzle/commit/f204a6112216f31685717d9fc1bf6cabf42b2ef1

(cherry-picked from 86e62d8b37ff9ad40e7c21c2c0c440a9cdfc550e)

test/unit/selector.js

index c4c7605223065b01bf5cfc7957bd443398fc10a9..912bfb40ac5368714be368967fdef2395037ba88 100644 (file)
@@ -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"] );