On Dec 28, 2007 2:29 AM, Juergen Donnerstag
<[EMAIL PROTECTED]> wrote:
> On Dec 28, 2007 2:15 AM, Matej Knopp <[EMAIL PROTECTED]> wrote:
> > But how can we know that for some pages users don't want to force the
> > quirks mode?
> > I'm big -1 on stripping the xml declaration for all pages by default.
>
> That is exactly my point. It most certainly will break existing applications.
Agree on that.
>
> > That would break any application where the users are relying on <xml
> > declaration making IE use quirks mode.
>
> I wonder how many users actually do that compared to (IMO rather weird
> thinking) that a proper xml document will swicth IE into quirks mode
> (which is the old buggy render mode). How many users actually have the
> intend to deliberately switch into quirks mode rather than the other
> way around (use a std compliant mode).

It's not that unusual really. It's a way to ensure that all browsers
use border-box box-sizing. Since IE doesn't support the border-box css
attribute, if you want to have sizes calculated like that you need to
force ie to go to quirks mode. I certainly don't think we can change
thing like this silently. And I don't even thing we have a reason for
it.

Right now the problem why error pages doesn't work with IE really is
the comment between <xml declaration and doctype. I've tested it.

>
> >
> > We should focus on the problem itself, and that is the
> > Apache header between the <?xml declaration and doctype which is what
> > completely breaks IE.
>
> I'm not sure this is true. Anything, including the xml decl, before
> the doctype makes IE switch into quirks mode.
Yes, but for our error pages we can either remove the xml declaration
or not care that it switches IE into quirksmode. Quirksmode is not the
real problem here. The problem is that right now IE doesn't show the
error pages at all, quirksmode or not.
>
> >
> > Now I can see two simple solution. Either wraps the header comment
> > with <wicket:remove> or move the header comment after doctype.
>
> I'm not sure this will work. Did you try it already?
Yes, I've tried both. They both work and IE shows the pages properly.

If we really want the behavior when you add an <xml header> to file
and then don't want to show it in ouput, we should have a way to
configure that per file, such as <wicket:stripXmlHeader/> somewhere in
the markup.

-Matej
-Matej
>
> Juergen
>

Reply via email to