Side navigation
#6628 closed bug (invalid)
Opened June 03, 2010 10:14AM UTC
Closed August 11, 2010 02:21AM UTC
change HTML to div inside a tag
Reported by: | mikis | Owned by: | |
---|---|---|---|
Priority: | Milestone: | 1.4.3 | |
Component: | manipulation | Version: | 1.4.2 |
Keywords: | html div a | Cc: | |
Blocked by: | Blocking: |
Description
When attempting to modify the html of a div which inside of an A tag you get a result of extra a tag inside the div.
The bug is only occur in FF (I'm using 3.6)
Here's the example of my code:
<script type="text/javascript" language="javascript">
$(document).ready(function(){
$("#a_tag").html("OK");
$("#div_tag").html("OK");
$("#divanda_tag div").html("Problem");
});
</script>
<a id="a_tag"></a>
<div id="div_tag"></div>
<a id="divanda_tag"><div></div></a>
Attachments (0)
Change History (1)
Changed August 11, 2010 02:21AM UTC by comment:1
resolution: | → invalid |
---|---|
status: | new → closed |
The markup is invalid. An <a> tag is an inline element but a <div> is a block element.