Side navigation
#5078 closed bug (duplicate)
Opened August 19, 2009 09:06PM UTC
Closed October 29, 2010 06:14AM UTC
Last modified October 29, 2010 06:14AM UTC
More Selector Strangeness
| Reported by: | morgancodes | Owned by: | john |
|---|---|---|---|
| Priority: | major | Milestone: | 1.4 |
| Component: | selector | Version: | 1.3 |
| Keywords: | selector oddity | Cc: | |
| Blocked by: | Blocking: |
Description
Similar to http://dev.jquery.com/ticket/4748
In the following example, FireFox finds three nodes, IE7 finds none.
HTML FILE
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"></script>
</head>
<body>
<script>
var xml;
$.ajax({
type: "GET",
url: "data.xml",
success: function(data){
var query1 = $("CI,CF", data).length;
var msg = '$("CI,CF", data).length: ' + query1;
alert(msg);
}
});
</script>
</body>
</html>
XML FILE
<?xml version="1.0" encoding="ISO-8859-2"?> <CNs> <CI> </CI> <CF> </CF> <CI> </CI> </CNs>