Selector: Remove "#" exception for identifier tokens

Port Sizzle test change from:
https://github.com/jquery/sizzle/commit/f204a6112216f31685717d9fc1bf6cabf42b2ef1

(cherry-picked from 86e62d8b37ff9ad40e7c21c2c0c440a9cdfc550e)
parent b3edc61c
...@@ -166,8 +166,8 @@ test("attributes", function() { ...@@ -166,8 +166,8 @@ test("attributes", function() {
t( "Attribute Equals Number", "#qunit-fixture li[tabIndex=-1]", ["foodWithNegativeTabIndex"] ); t( "Attribute Equals Number", "#qunit-fixture li[tabIndex=-1]", ["foodWithNegativeTabIndex"] );
document.getElementById("anchor2").href = "#2"; document.getElementById("anchor2").href = "#2";
t( "href Attribute", "p a[href^=#]", ["anchor2"] ); t( "href Attribute", "p a[href^='#']", ["anchor2"] );
t( "href Attribute", "p a[href*=#]", ["simon1", "anchor2"] ); t( "href Attribute", "p a[href*='#']", ["simon1", "anchor2"] );
t( "for Attribute", "form label[for]", ["label-for"] ); t( "for Attribute", "form label[for]", ["label-for"] );
t( "for Attribute in form", "#form [for=action]", ["label-for"] ); t( "for Attribute in form", "#form [for=action]", ["label-for"] );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment