I have a structure that looks like this:
<a href="#">
<footer>
<p>Some text</p>
<h2>A Heading</h2>
</footer>
</a>
This works and displays as expected in all browsers (even IE6 with HTML5shiv.js) except Firefox 3.6. In Firefox 3.6, the display is completely screwed up, and if you use Firebug to check the DOM, the element is <footer>empty, and the elements that should be inside it are outside.
All tags are closed correctly. <a>set to display:blockin CSS.
The W3C validator validates the document and does not place this structure as incorrect.
The specification states that an element <a>can be classified as the contents of a stream when it contains other contents of the stream. <footer>- stream content.
Is it just that Firefox 3.6 does not fully display HTML?
Any ideas for a fix?
That!
source
share