Attribute hooks do not need to be attached in XML docs. Fixes #9568.
This commit is contained in:
parent
39a2f29c29
commit
641ad80211
3 changed files with 22 additions and 18 deletions
|
@ -132,11 +132,12 @@ test("attr(String)", function() {
|
|||
|
||||
if ( !isLocal ) {
|
||||
test("attr(String) in XML Files", function() {
|
||||
expect(2);
|
||||
expect(3);
|
||||
stop();
|
||||
jQuery.get("data/dashboard.xml", function( xml ) {
|
||||
equals( jQuery( "locations", xml ).attr("class"), "foo", "Check class attribute in XML document" );
|
||||
equals( jQuery( "location", xml ).attr("for"), "bar", "Check for attribute in XML document" );
|
||||
equal( jQuery( "locations", xml ).attr("class"), "foo", "Check class attribute in XML document" );
|
||||
equal( jQuery( "location", xml ).attr("for"), "bar", "Check for attribute in XML document" );
|
||||
equal( jQuery( "location", xml ).attr("checked"), "different", "Check that hooks are not attached in XML document" );
|
||||
start();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue