[WSG] weird IE6 doctype switching question

2005-12-18 Thread Marco van Hylckama Vlieg

Hi guys,

This is probably going to sound really weird but I need this for 
something I'm working on.


Question: Is it possible to make IE6 use the broken box model for a PART 
of the document?
This means I have an XHTML 1.0 Strict / Transitional document with a 
div in it for which the
inner content should be rendered with the broken box model, only in IE 
6, not Firefox.


Is there any way to do this at all?

Cheers,

Marco


**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**



Re: [WSG] weird IE6 doctype switching question

2005-12-18 Thread Bert Doorn

G'day

This is probably going to sound really weird but I need this for 
something I'm working on.


Yep, you got that right but I won't ask why :-)

Question: Is it possible to make IE6 use the broken box model for a PART 
of the document?


As far as I know, the only way you'd get that behaviour would be 
if you insert a document (with quirks mode trigger) into an 
iframe (or object) on the compliant page.


Note: just a theory - I haven't tested it.

Regards
--
Bert Doorn, Better Web Design
http://www.betterwebdesign.com.au/
Fast-loading, user-friendly websites

**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**



Re: [WSG] weird IE6 doctype switching question

2005-12-18 Thread Lachlan Hunt

Marco van Hylckama Vlieg wrote:
Question: Is it possible to make IE6 use the broken box model for a 
PART of the document?


No, DOCTYPE switching applies to the whole document, not just parts of
the document.

The different box model may one day be able to be chosen using the 
proposed 'box-sizing' property [1] in the CSS3 box model module. 
Mozilla has some support for it as '-moz-box-sizing'.  Although, as 
noted in the CSS3 draft, 'box-sizing' may actually be dropped in favour 
of a better solution.


This means I have an XHTML 1.0 Strict / Transitional document with a 
div in it for which the inner content should be rendered with the 
broken box model, only in IE 6, not Firefox.


Your going about trying to solve this the wrong way.  Instead of trying 
to solve the problem by making a browser use intentionally broken 
behaviour (quirks mode) because it gives the intended result, try and 
work out the cause of the different rendering and find an alternate 
method or (as a last resort) use a hack.  You may find that your problem 
is one of the many well documented IE bugs for which many workarounds 
are readily available.


As for quirks mode, you should basically try to forget it even exists as 
an alternative and never, under any circumstances, attempt to develop a 
page using it.  Use of quirks mode is never a good solution to any problem.


[1] http://www.w3.org/TR/2002/WD-css3-box-20021024/#the-box-width

--
Lachlan Hunt
http://lachy.id.au/

**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**



Re: [WSG] weird IE6 doctype switching question

2005-12-18 Thread Stephen Stagg

Lachlan Hunt wrote:

Marco van Hylckama Vlieg wrote:
Question: Is it possible to make IE6 use the broken box model for a 
PART of the document?


No, DOCTYPE switching applies to the whole document, not just parts of
the document.

The different box model may one day be able to be chosen using the 
proposed 'box-sizing' property [1] in the CSS3 box model module. 
Mozilla has some support for it as '-moz-box-sizing'.  Although, as 
noted in the CSS3 draft, 'box-sizing' may actually be dropped in 
favour of a better solution.


This means I have an XHTML 1.0 Strict / Transitional document with a 
div in it for which the inner content should be rendered with the 
broken box model, only in IE 6, not Firefox.


Your going about trying to solve this the wrong way.  Instead of 
trying to solve the problem by making a browser use intentionally 
broken behaviour (quirks mode) because it gives the intended result, 
try and work out the cause of the different rendering and find an 
alternate method or (as a last resort) use a hack.  You may find that 
your problem is one of the many well documented IE bugs for which many 
workarounds are readily available.


As for quirks mode, you should basically try to forget it even exists 
as an alternative and never, under any circumstances, attempt to 
develop a page using it.  Use of quirks mode is never a good solution 
to any problem.


[1] http://www.w3.org/TR/2002/WD-css3-box-20021024/#the-box-width

Unless you're trying to write an example page to demonstrate the 
different behaviours of different browsers.


Stephen
**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**



Re: [WSG] weird IE6 doctype switching question

2005-12-18 Thread Marco van Hylckama Vlieg

About the 'why':

I'm working on a little Backbase application. From what I've seen so far 
it seems to require quirks mode to function right
in Internet Explorer. You can see this because their website at 
www.backbase.com has !-- -- on top of the page.


Now I want to include a little backbase powered mini-app inside my 
weblog, of which the pages (of course) require strict rendering mode.


I can do it in an iframe with the !-- -- thing on top of the document 
that's loaded inside of it but that results in another
problem: the iframe's height. As it's an ajax thing the height of the 
inner document will vary and I don't want the iframe
to ever have a scrollbar. I guess my only option is to limit the height 
of the ajax generated content in order to make

sure it never gets higher than my iframe then?

- Marco



Bert Doorn wrote:

G'day

This is probably going to sound really weird but I need this for 
something I'm working on.


Yep, you got that right but I won't ask why :-)

Question: Is it possible to make IE6 use the broken box model for a 
PART of the document?


As far as I know, the only way you'd get that behaviour would be if 
you insert a document (with quirks mode trigger) into an iframe (or 
object) on the compliant page.


Note: just a theory - I haven't tested it.

Regards


**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**



Re: [WSG] weird IE6 doctype switching question

2005-12-18 Thread Thierry Koblentz
Lachlan Hunt wrote:

 As for quirks mode, you should basically try to forget it even exists
 as an alternative and never, under any circumstances, attempt to
 develop a page using it.  Use of quirks mode is never a good solution
 to any problem.

IMHO, throwing IE6 into quirksmode is sometimes the only way to make it
behave.

Thierry | www.TJKDesign.com

**
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list  getting help
**



Re: [WSG] weird IE6 doctype switching question

2005-12-18 Thread Gunlaug Sørtun

Thierry Koblentz wrote:
IMHO, throwing IE6 into quirksmode is sometimes the only way to make 
it behave.


Agreed. Makes IE6 behave almost according to standards without any of
its Strict but not very standard limitations.

However, using a !-- comment -- to achieve Quirks mode in IE6 should
be limited to HTML4, and not used with XHTML1.0. A proper xml
declaration works just fine, and should really be there anyway.

Georg
--
http://www.gunlaug.no
**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**