No ticket. Restore some parsing tests in core. (cherry-picked from 650f325d8e)

This commit is contained in:
Michał Gołębiowski 2013-09-07 02:46:55 +02:00
parent 7c38b0686d
commit b349731e57

View File

@ -588,7 +588,7 @@ test("isWindow", function() {
});
test("jQuery('html')", function() {
expect( 15 );
expect( 18 );
var s, div, j;
@ -623,10 +623,13 @@ test("jQuery('html')", function() {
ok( jQuery("<div></div>")[0], "Create a div with closing tag." );
ok( jQuery("<table></table>")[0], "Create a table with closing tag." );
// equal( jQuery("element[attribute='<div></div>']").length, 0, "When html is within brackets, do not recognize as html." );
// equal( jQuery("element[attribute=<div></div>]").length, 0, "When html is within brackets, do not recognize as html." );
// equal( jQuery("element:not(<div></div>)").length, 0, "When html is within parens, do not recognize as html." );
// equal( jQuery("\\<div\\>").length, 0, "Ignore escaped html characters" );
equal( jQuery( "element[attribute='<div></div>']" ).length, 0,
"When html is within brackets, do not recognize as html." );
//equal( jQuery( "element[attribute=<div></div>]" ).length, 0,
// "When html is within brackets, do not recognize as html." );
equal( jQuery( "element:not(<div></div>)" ).length, 0,
"When html is within parens, do not recognize as html." );
equal( jQuery( "\\<div\\>" ).length, 0, "Ignore escaped html characters" );
});
test("jQuery('massive html #7990')", function() {