Commit 6bc30425 authored by jeresig's avatar jeresig

Make sure that we don't use matchesSelector on XML Documents (same as with qSA). Fixes #7219.

parent 4fc86d5e
...@@ -36,7 +36,7 @@ test("element", function() { ...@@ -36,7 +36,7 @@ test("element", function() {
if ( location.protocol != "file:" ) { if ( location.protocol != "file:" ) {
test("XML Document Selectors", function() { test("XML Document Selectors", function() {
expect(7); expect(8);
stop(); stop();
jQuery.get("data/with_fries.xml", function(xml) { jQuery.get("data/with_fries.xml", function(xml) {
equals( jQuery("foo_bar", xml).length, 1, "Element Selector with underscore" ); equals( jQuery("foo_bar", xml).length, 1, "Element Selector with underscore" );
...@@ -46,6 +46,7 @@ if ( location.protocol != "file:" ) { ...@@ -46,6 +46,7 @@ if ( location.protocol != "file:" ) {
equals( jQuery("[name=prop2]", xml).length, 1, "Attribute selector with name" ); equals( jQuery("[name=prop2]", xml).length, 1, "Attribute selector with name" );
equals( jQuery("#seite1", xml).length, 1, "Attribute selector with ID" ); equals( jQuery("#seite1", xml).length, 1, "Attribute selector with ID" );
equals( jQuery("component#seite1", xml).length, 1, "Attribute selector with ID" ); equals( jQuery("component#seite1", xml).length, 1, "Attribute selector with ID" );
equals( jQuery("component", xml).filter("#seite1").length, 1, "Attribute selector filter with ID" );
start(); start();
}); });
}); });
......
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