Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6eee5f7

Browse files
authored
Selector: Add a test for throwing on post-comma invalid selectors
Sizzle's PRjquery/sizzle#456 introduced a test catching not throwing onbadly-escaped identifiers by Firefox 3.6-5. Unfortunately, it was placed justbefore a test Opera 10-11 failed, making Opera fail quicker and not addinga post-comma invalid selector to rbuggyQSA.The issue was fixed injquery/sizzle#463. This jQuery commit backports the testthat Sizzle PR added as no workarounds are needed in browsers jQuery supports.Closesgh-4516Refjquery/sizzle#456Refjquery/sizzle#463
1 parent1d624c1 commit6eee5f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎test/unit/selector.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ QUnit.test( "XML Document Selectors", function( assert ) {
179179
});
180180

181181
QUnit.test("broken selectors throw",function(assert){
182-
assert.expect(32);
182+
assert.expect(33);
183183

184184
functionbroken(name,selector){
185185
assert.throws(function(){
@@ -197,6 +197,7 @@ QUnit.test( "broken selectors throw", function( assert ) {
197197
broken("Broken Selector",",");
198198
broken("Broken Selector",",a");
199199
broken("Broken Selector","a,");
200+
broken("Post-comma invalid selector","*,:x");
200201
broken("Identifier with bad escape","foo\\\fbaz");
201202
broken("Broken Selector","[id=012345678901234567890123456789");
202203
broken("Doesn't exist",":visble");

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp