Website layout

  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Joined: Dec 29, 2003
  • Posts: 5169
  • Loc: SC-USA
  • Status: Offline

Post November 13th, 2007, 2:00 pm

Fair enough. :thumbsup:

I stand corrected. The XML prologue apparently causes IE6 to go into quirks mode.

blink, I apologize for my curtness.
- dM
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post November 13th, 2007, 2:00 pm

  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Joined: Dec 29, 2003
  • Posts: 5169
  • Loc: SC-USA
  • Status: Offline

Post November 13th, 2007, 2:57 pm

This does bring up an interesting dilemma, however. According to W3C(document)...

Quote:
An XML declaration is not required in all XML documents; however XHTML document authors are strongly encouraged to use XML declarations in all their documents. Such a declaration is required when the character encoding of the document is other than the default UTF-8 or UTF-16 and no encoding was determined by a higher-level protocol. Here is an example of an XHTML document. In this example, the XML declaration is included.
Code: [ Select ]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
   PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
  <title>Virtual Library</title>
 </head>
 <body>
  <p>Moved to <a href="http://example.org/">example.org</a>.</p>
 </body>
</html>
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE html
  3.    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  4.   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  5. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  6.  <head>
  7.   <title>Virtual Library</title>
  8.  </head>
  9.  <body>
  10.   <p>Moved to <a href="http://example.org/">example.org</a>.</p>
  11.  </body>
  12. </html>


...I think I'll just let it align to the left in IE6.
- dM
  • blink182av
  • Guru
  • Guru
  • No Avatar
  • Joined: Jun 27, 2005
  • Posts: 1261
  • Loc: New York
  • Status: Offline

Post November 13th, 2007, 7:33 pm

digitalMedia wrote:
This does bring up an interesting dilemma, however. According to W3C(document)...

Quote:
An XML declaration is not required in all XML documents; however XHTML document authors are strongly encouraged to use XML declarations in all their documents. Such a declaration is required when the character encoding of the document is other than the default UTF-8 or UTF-16 and no encoding was determined by a higher-level protocol. Here is an example of an XHTML document. In this example, the XML declaration is included.
Code: [ Select ]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
   PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
  <title>Virtual Library</title>
 </head>
 <body>
  <p>Moved to <a href="http://example.org/">example.org</a>.</p>
 </body>
</html>
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE html
  3.    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  4.   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  5. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  6.  <head>
  7.   <title>Virtual Library</title>
  8.  </head>
  9.  <body>
  10.   <p>Moved to <a href="http://example.org/">example.org</a>.</p>
  11.  </body>
  12. </html>


...I think I'll just let it align to the left in IE6.

Good find dM. It is also encouraged to use UTF-8 or UTF-16 for global encoding (meaning that you shouldn't need to put the XML declaration).

Glad we came to an agreement :).
  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Joined: Dec 29, 2003
  • Posts: 5169
  • Loc: SC-USA
  • Status: Offline

Post November 13th, 2007, 7:44 pm

:lol: Ha! But still strongly encouraged to use the prologue in all XHTML documents. :)

Agreement, right on.

It's kind of funny because I always thought that you were supposed to use the prologue for portability/interoperability and to really define the doc as XML - and I never questioned that. I just always thought IE was mishandling the XHTML DTDs in those respects.
- dM
  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8212
  • Loc: USA
  • Status: Offline

Post November 13th, 2007, 8:05 pm

IE still sucks no matter how you put it :lol:
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Joined: Dec 29, 2003
  • Posts: 5169
  • Loc: SC-USA
  • Status: Offline

Post November 13th, 2007, 8:09 pm

Bogey wrote:
IE still sucks no matter how you put it :lol:

Oh, brother. :lol:
- dM

Post Information

  • Total Posts in this topic: 21 posts
  • Users browsing this forum: No registered users and 167 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.