Skip to content

Commit 6bc3042

Browse files
committed
Make sure that we don't use matchesSelector on XML Documents (same as with qSA). Fixes #7219.
1 parent 4fc86d5 commit 6bc3042

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
@@ -36,7 +36,7 @@ test("element", function() {
3636

3737
if ( location.protocol != "file:" ) {
3838
test("XML Document Selectors", function() {
39-
expect(7);
39+
expect(8);
4040
stop();
4141
jQuery.get("data/with_fries.xml", function(xml) {
4242
equals( jQuery("foo_bar", xml).length, 1, "Element Selector with underscore" );
@@ -46,6 +46,7 @@ if ( location.protocol != "file:" ) {
4646
equals( jQuery("[name=prop2]", xml).length, 1, "Attribute selector with name" );
4747
equals( jQuery("#seite1", xml).length, 1, "Attribute selector with ID" );
4848
equals( jQuery("component#seite1", xml).length, 1, "Attribute selector with ID" );
49+
equals( jQuery("component", xml).filter("#seite1").length, 1, "Attribute selector filter with ID" );
4950
start();
5051
});
5152
});

0 commit comments

Comments
 (0)