SitePoint Sponsor

User Tag List

Results 1 to 13 of 13
  1. #1
    SitePoint Wizard aaron.martone's Avatar
    Join Date
    Feb 2003
    Location
    Florida, USA
    Posts
    2,322
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Exclamation XHTML 1.1 Valid Imagemap

    I understand the usability risks using an imagemap (not providing text-based navigation), but aside from that, is it possible to create an XHTML 1.1 Strict imagemap?

    In FF the map won't work when you use the NAME attribute on the MAP tag (makes sense).

    In IE, the map only works if you add the NAME attribute to the MAP tag, which makes the code XHTML 1.1 Strict invalid.

    Is there no common ground?

  2. #2
    SitePoint Addict StuckRUs's Avatar
    Join Date
    Jul 2006
    Location
    UK
    Posts
    286
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    SMILE! everyone will wonder what you're up to.
    Site - under construction - again

  3. #3
    bronze trophy
    Join Date
    Dec 2004
    Location
    Sweden
    Posts
    2,670
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    IE doesn't support XHTML at all.

    The common ground between Firefox and IE is (a subset of) HTML 4.01.
    Simon Pieters

  4. #4
    SitePoint Wizard aaron.martone's Avatar
    Join Date
    Feb 2003
    Location
    Florida, USA
    Posts
    2,322
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    StuckRUs, no, sorry, that was no help to me. The article read like VCR instructions and didn't really give me any ideas on how to achieve my desired results.

    zcorpan, as crappy as IE is, I have to be able to support it. I've been doing some google searches and am beginning to think that there isn't a current solution aside from tossing the imagemap to the wayside.

  5. #5
    bronze trophy
    Join Date
    Dec 2004
    Location
    Sweden
    Posts
    2,670
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by aaron.martone View Post
    zcorpan, as crappy as IE is, I have to be able to support it.
    Sounds reasonable. So why are you using (or pretending to be using) XHTML, which IE has no support for?
    Quote Originally Posted by aaron.martone View Post
    I've been doing some google searches and am beginning to think that there isn't a current solution aside from tossing the imagemap to the wayside.
    Use HTML 4.01 instead.
    Simon Pieters

  6. #6
    SitePoint Wizard aaron.martone's Avatar
    Join Date
    Feb 2003
    Location
    Florida, USA
    Posts
    2,322
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I understand that when I set the server to serve the page up as application/xhtml+xml that MSIE won't even render the page, so yeah, I know it's not TRUE XHTML, but I'm using the Strict 1.1 DTD.

    I guess when it comes down to it, IE hits the brick wall on this problem. Meaning there just isn't a way to be XHTML compliant and work in IE.

    Curse the men and women who spawned that horrible browser....

  7. #7
    bronze trophy
    Join Date
    Dec 2004
    Location
    Sweden
    Posts
    2,670
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by aaron.martone View Post
    but I'm using the Strict 1.1 DTD.
    ...and what benefit does this bring you over using an HTML 4.01 Strict doctype?
    Quote Originally Posted by aaron.martone View Post
    Meaning there just isn't a way to be XHTML compliant and work in IE.
    You're right on that one. Why keep pretending you're using it?
    Simon Pieters

  8. #8
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You must not serve XHTML 1.1 as text/html, because it is not fully compatible with HTML.

    If you absolutely want to pretend to use XHTML but serve it as HTML, then use XHTML 1.0 (and pay attention to Appendix C of the spec).
    Birnam wood is come to Dunsinane

  9. #9
    SitePoint Wizard aaron.martone's Avatar
    Join Date
    Feb 2003
    Location
    Florida, USA
    Posts
    2,322
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Ah! I gotcha now. XHTML 1.0 Strict. Not served as TRUE XHTML because of IE's limitations (I could easily serve it correctly via Coldfusion's CFCONTENT tag which lets me set the page MIMETYPE to application/xhtml+xml, which would be TRUE XHTML, no?

    Using the XHTML 1.0 Strict Doctype (Rather than 1.1), it validates and works in both. Thanks guys.

  10. #10
    bronze trophy
    Join Date
    Dec 2004
    Location
    Sweden
    Posts
    2,670
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by aaron.martone View Post
    I could easily serve it correctly via Coldfusion's CFCONTENT tag which lets me set the page MIMETYPE to application/xhtml+xml, which would be TRUE XHTML, no?
    Sure. Try it. Just to see that everything works as intended in XHTML browsers.
    Simon Pieters

  11. #11
    SitePoint Wizard aaron.martone's Avatar
    Join Date
    Feb 2003
    Location
    Florida, USA
    Posts
    2,322
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Yeah, I did... IE insists on serving the page for download and not rendering. I'd love to meet n greet Bill one day and thank him for all the hard work they put into MSIE.

    It's like a plague on the web.

  12. #12
    SitePoint Wizard drhowarddrfine's Avatar
    Join Date
    Aug 2005
    Posts
    3,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    More like a cancer (see below).

  13. #13
    bronze trophy
    Join Date
    Dec 2004
    Location
    Sweden
    Posts
    2,670
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by aaron.martone View Post
    Yeah, I did... IE insists on serving the page for download and not rendering.
    IE isn't an XHTML browser, so testing in IE is pointless. I meant you should test so that everything still works in e.g. Firefox, Opera and Safari. (Some things work differently in XML than in text/html.)
    Simon Pieters


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
  •