Selector: Remove "#" exception for identifier tokens

Port Sizzle test change from:
f204a61122
This commit is contained in:
Michał Gołębiowski 2014-06-30 18:13:57 +02:00
parent 4f776e5ff9
commit 86e62d8b37

View File

@ -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"] );