User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624
During development I found out that using <iframe src="somepage.html"/> only
works once per page; in the attached example, using <iframe/> at a certain
point in a page leads to the rest of the page not being displayed. When using
<iframe></iframe> instead, it works like a charm (so far) :-)
Steps to Reproduce:
1. Use <iframe/> self-closing tag instead of <iframe></iframe> tag pair in a page.
The rest of the page after the <iframe/> tag is not displayed, at least not in
the attached example provided.
<iframe/> should behave like <iframe></iframe> - at least according to my
understanding, but I may be wrong.
Created attachment 127741 [details]
Test case showing the same example page using <iframe/> and <iframe></iframe>
This is invalid. You can't use XML syntax in HTML. While <iframe/> is
self-closing in XML, in HTML the "/" is just an unknown attribute that is
ignored (which is why you usually add a space for compatability reasons, <iframe
I took your testcase, converted it to XHTML, and it works as expected.
See also http://www.w3.org/TR/xhtml1/#guidelines
*** This bug has been marked as a duplicate of 158667 ***
>You can't use XML syntax in HTML.
Er, I should say, you can't always use XML syntax in HTML. The link I gave, for
the XHTML spec Appendix C, gives the rules for writing XHTML that can be
processed as HTML successfully.