[_] <iframe> elements in XHTML 1.0 'Strict'
Pete Fairhurst
pete at markedup.co.uk
Tue Aug 1 10:34:38 BST 2006
Hi all,
I'd like to use the equivalent of an iframe under an XHTML 1.0 'Strict'
doctype, but I'm aware they're not supported. So, use an object element
instead, right? Nope, and you can probably guess why; IE doesn't appear to
support the use of object elements in this way. Here's a code
sample--before:
<iframe src="<c:url value="/unity/browse-hierarchies.html"/>"
id="article-browser-tree-viewer">
<h5>Error</h5>
<p>You need a modern, Standards-compliant web browser to use this
system. Unfortunately, your current browser does not appear to meet these
requirements.</p>
<p>Please log in again using an up-to-date version of one of the
following:</p>
<ul>
<li><a href="http://www.microsoft.com/windows/ie/">Microsoft
Internet Explorer</a></li>
<li><a href="http://www.mozilla.com/firefox/">Mozilla
Firefox</a></li>
<li><a href="http://www.apple.com/safari/">Apple Safari</a></li>
</ul>
<p>Thank you, and apologies for any inconvenience this may cause.</p>
</iframe>
...and after:
<object type="text/html" data="<c:url value="/unity/browse-hierarchies.html"/>"
id="article-browser-tree-viewer">
[as above]
</object>
Whilt I appreciate the 'type' attribute isn't strictly required below XHTML
1.1, I'm struggling to understand why IE won't render this. More hard-coded
assumptions on Microsoft's part? Any tips, tricks or alternative
suggestions would be appreciated.
Thanks in advance.
- Pete F.
________________________________________________________
"A committee is a cul-de-sac down which ideas are lured
and then quietly strangled." -Sir Barnett Cocks
________________________________________________________
I'd like to use the equivalent of an iframe under an XHTML 1.0 'Strict'
doctype, but I'm aware they're not supported. So, use an object element
instead, right? Nope, and you can probably guess why; IE doesn't appear to
support the use of object elements in this way. Here's a code
sample--before:
<iframe src="<c:url value="/unity/browse-hierarchies.html"/>"
id="article-browser-tree-viewer">
<h5>Error</h5>
<p>You need a modern, Standards-compliant web browser to use this
system. Unfortunately, your current browser does not appear to meet these
requirements.</p>
<p>Please log in again using an up-to-date version of one of the
following:</p>
<ul>
<li><a href="http://www.microsoft.com/windows/ie/">Microsoft
Internet Explorer</a></li>
<li><a href="http://www.mozilla.com/firefox/">Mozilla
Firefox</a></li>
<li><a href="http://www.apple.com/safari/">Apple Safari</a></li>
</ul>
<p>Thank you, and apologies for any inconvenience this may cause.</p>
</iframe>
...and after:
<object type="text/html" data="<c:url value="/unity/browse-hierarchies.html"/>"
id="article-browser-tree-viewer">
[as above]
</object>
Whilt I appreciate the 'type' attribute isn't strictly required below XHTML
1.1, I'm struggling to understand why IE won't render this. More hard-coded
assumptions on Microsoft's part? Any tips, tricks or alternative
suggestions would be appreciated.
Thanks in advance.
- Pete F.
________________________________________________________
"A committee is a cul-de-sac down which ideas are lured
and then quietly strangled." -Sir Barnett Cocks
________________________________________________________