Wikipedia also says that IE'll enter quirks mode if you simply leave the
doctype declaration off entirely, or change it to be invalid:
http://en.wikipedia.org/wiki/Quirks_mode
Not sure if that helps you at all, as I don't have time to test...
IIRC, DOCTYPE is specified in the xml spec as being the mandatory first
element, so inserting a comment is just a way of telling IE that you're
not going to give it anything it should trust.
Jim
Alex Sherwin wrote:
> Running out places to look for an answer, maybe someone here has an idea.
>
> I need to put a <!-- comment --> in the rendered document before the doctype
> string for IE quirks mode. I HAVE to do this to resolve an IE CSS issue
> with overflow and divs and 100% widths.
>
> I'm using icefaces, but im open to a generic jsf/facelets solution that may
> work. I can't think of any way to accomplish this since the rendered
> document is completely generated serverside, which is ignoring all comments
> in the document.
>
> Any ideas/suggestions are greatly appreciated
>
>
> Alex Sherwin
> alex.sherwin_at_acadiasoft.com
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>