Results 1 to 3 of 3

Thread: Nested OPTGROUP in IE?

  1. #1
    Join Date
    Apr 2008
    Location
    San Diego, CA
    Posts
    352
    Thanks
    57
    Thanked 6 Times in 6 Posts

    Default Nested OPTGROUP in IE?

    Hi all,

    Does anyone know of any tricks or hacks to get nested OPTGROUP elements to work in IE?

    I know this is explicitly forbidden by the HTML4 spec, and I'm using XHTML-served-as-HTML, but every other browser has no issues with it.


    Thanks!
    My site: FreshCut :)

  2. #2
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    Quote Originally Posted by jlizarraga View Post
    Hi all,

    Does anyone know of any tricks or hacks to get nested OPTGROUP elements to work in IE?

    I know this is explicitly forbidden by the HTML4 spec, and I'm using XHTML-served-as-HTML, but every other browser has no issues with it.

    Thanks!
    The standards are in place for a reason.
    As for parsing a XHTML page as HTML, well that's just stupid, because you don't get any of the benefits provided by XHTML, but you should get errors and warnings generated because of the malformed HTML.

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Your question lacks specifics and implies that everybody knows what OPTGROUP (as you conceive of it or as a particular approach in web design) means.

    That said, IE 5+ has a documented HTML conditional comments feature that probably could be adapted to your purposes. It is a little complex, so it may take a bit of time to get it working optimally for your particular situation. But, in any case, the information on how these conditionals work is here:

    http://msdn.microsoft.com/en-us/libr...12(VS.85).aspx

    Feel free to give more specifics about your problem, and/or ask questions about these conditional comments.

    One advantage to using IE conditional comments is that they are one of the things Microsoft got right - in that if used properly, they can be relied upon for what they are documented to do.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •