Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here



Browser Bugs Affecting HTML

Q element does not get quoted in IE by BillyRayPreachersSon
Posted: 30 Apr 05 (Edited 3 May 06)

Unfortunately, Microsoft has not adhered to the HTML specifications for the Q element:

Quote (W3C):

Visual user agents must ensure that the content of the Q element is rendered with delimiting quotation marks. Authors should not put quotation marks at the beginning and end of the content of a Q element.

One way around this is to use IE's conditional comments to insert quotes for IE only:


    And so I said to him <q lang="en-uk"><!--[if IE]>&quot;<![endif]-->I have never been so exhausted after such a marathon session<!--[if IE]>&quot;<![endif]--></q>

The only drawback of that method is, as you can see, the quotes are not language-dependant. They will be fixed to the quotes given in the source, whereas the browser-inserted quotes should be dependant on the language of the quote (or document, if none is specified).

Should Microsoft fix this for IE 7, then version detection can be placed in the conditional comment:


<!--[if lt IE 7]>


Coedit Limited - Delivering standards compliant, accessible web solutions

Dan's Page @ Code Couch

Back to HTML, XHTML & CSS FAQ Index
Back to HTML, XHTML & CSS Forum

My Archive

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close