mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Selector: add jQuery.escapeSelector
Fixes gh-1761 Close gh-2878
This commit is contained in:
@@ -536,3 +536,9 @@ QUnit.asyncTest( "Iframe dispatch should not affect jQuery (#13936)", 1, functio
|
||||
iframeDoc.write( "<body><form id='navigate' action='?'></form></body>" );
|
||||
iframeDoc.close();
|
||||
} );
|
||||
|
||||
QUnit.test( "Ensure escapeSelector exists (escape tests in Sizzle)", function( assert ) {
|
||||
assert.expect( 1 );
|
||||
|
||||
assert.equal( jQuery.escapeSelector( "#foo.bar" ), "\\#foo\\.bar", "escapeSelector present" );
|
||||
} );
|
||||
|
||||
Reference in New Issue
Block a user