SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Addict drjones013's Avatar
    Join Date
    Jan 2007
    Location
    Las Vegas, NV
    Posts
    216
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    DOM in XHTML on IE6

    Maybe you can answer a question for me: I'm reading the preview for XML web development (sitepoint book) and it clearly shows IE rendering XML (the author states IE5 and above); does that mean that IE's problem with XHTML is CDATA and not XML universally? If that's true then IE could render an albeit gimped XHTML page which would explain why HTML 4.01 and XHTML are virtually synonymous in IE 6.

    Is there a workaround for this in JavaScript, if the above is true?

  2. #2
    SitePoint Wizard
    Join Date
    Mar 2001
    Posts
    3,537
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Huh?

  3. #3
    SitePoint Addict drjones013's Avatar
    Join Date
    Jan 2007
    Location
    Las Vegas, NV
    Posts
    216
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Guess not then... I'm still trying to find a way to DOM in IE6. I got so excited that IE rendered an XML page that I thought for a second that I could run XHTML as long as I didn't put in a CDATA reference. My bad.

    It's getting so frustrating I may just convert over to "semantic" HTML 4.01 and go it from there

  4. #4
    SitePoint Wizard siteguru's Avatar
    Join Date
    Oct 2002
    Location
    Scotland
    Posts
    3,631
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Ian Anderson
    www.siteguru.co.uk

  5. #5
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Internet Explorer does not support XHTML in any way, shape or form.

    It does (partially) support HTML (which includes XHTML served as text/html).
    In this case you are using HTML, not XHTML or any other form of XML. All 'bad' aspects of HTML can be used, since it is HTML.

    It does 'support' XML (which includes XHTML served as application/xml or text/xml).
    In this case you are using generic XML, not XHTML, even with the proper XML namespace. You can used CDATA sections and stuff, but all semantics will be lost. You will also have to provide a style sheet that declares the default styling for all XHTML element types (including display:block for block-level elements).

    It does not support XHTML served as application/xhtml+xml.
    Birnam wood is come to Dunsinane

  6. #6
    SitePoint Addict drjones013's Avatar
    Join Date
    Jan 2007
    Location
    Las Vegas, NV
    Posts
    216
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the clarification, I read the w3 specs and it cleared up a lot of questions for me
    Last edited by drjones013; Feb 27, 2007 at 19:52. Reason: read w3


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •