Side navigation
#6653 closed bug (worksforme)
Opened June 10, 2010 03:13AM UTC
Closed June 11, 2010 12:59AM UTC
element selector of v1.4.2 found extra (none-exist) elements in firefox v3.6.3
Reported by: | koqiui | Owned by: | |
---|---|---|---|
Priority: | Milestone: | 1.4.2 | |
Component: | selector | Version: | 1.4.2 |
Keywords: | found extra elements | Cc: | |
Blocked by: | Blocking: |
Description
Given the following code:
<button>
echo selector result
</button>
<div>
DIV1
</div>
<div>
DIV2
</div>
<span>SPAN</span>
<script language="JavaScript" type="text/javascript">
$(function(){
------------
$("button").click(function(){
alert($("div").length);
$("div").each(function(i, elem){
alert((i + 1) + " - " + $(this).text());
});
});
------------
});
</script>
the result of found elements count is 3 in FF (works ok in IE : count is 2).
Attachments (2)
Change History (1)
Changed June 11, 2010 12:59AM UTC by comment:1
resolution: | → worksforme |
---|---|
status: | new → closed |
This seems to be an artifact of Firebug, which seems to be injecting a div into the DOM. See the attached test case and screen shot.