Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: strangeness of XHTML vs HTML rendering
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: strangeness of XHTML vs HTML rendering



I do not think so. It looks like the problem only relate to dynamically added "br". If I add "<br />" tag into the initial text, than it gets rendered properly regardless of "HTML" or "XHTML".

On Oct 4, 2006, at 3:06 PM, Scott Reynen wrote:

On Oct 4, 2006, at 1:48 PM, Andrei Tchijov wrote:

Hi,
I would like to get some advice in regards to following problem. Below is the sample of HTML code which produce different rendering depending on extension of the file it contained in. If file has extension "HTML", then it gets rendered properly ( 2 lines of text. "Hello world" and "some more text" ). However, if file has extension "XHTML", then it gets rendered as single line. Looking into DOM Inspector (Debug/Show DOM Tree) reveal "correct" structure ("br" is present in the DOM tree and in correct place).

What am I missing? You comments will be highly appreciated.

It sounds like you're experiencing the difference between quirks mode and strict mode rendering. See:


<http://www.quirksmode.org/css/quirksmode.html>

Peace,
Scott
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Web-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Web-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >strangeness of XHTML vs HTML rendering (From: Andrei Tchijov <email@hidden>)
 >Re: strangeness of XHTML vs HTML rendering (From: Scott Reynen <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.