IE6 XHTML title tag issue

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

If a page has an empty <title/> tag with an XHTML DOCTYPE declaration, the
page does not render under IE6 (6.0.2800.1106.xpsp2.050301-1526). An example
of such a page can be seen here:

http://greenhill.mine.nu/title.html

The page successfully passes validation at validator.w3.org and works OK in
Firefox, but just delivers a blank page in IE. I tried googling, an came
across one or two other postings, but nothing that explained if this is a
known issue / just bad XHTML.

TIA

Rich
 
CombinedEffortCom wrote on Thu, 18 Aug 2005 07:37:02 -0700:
If a page has an empty <title/> tag with an XHTML DOCTYPE declaration, the
page does not render under IE6 (6.0.2800.1106.xpsp2.050301-1526). An
example of such a page can be seen here:

http://greenhill.mine.nu/title.html

The page successfully passes validation at validator.w3.org and works OK
in Firefox, but just delivers a blank page in IE. I tried googling, an
came across one or two other postings, but nothing that explained if this
is a known issue / just bad XHTML.

http://www.w3.org/TR/xhtml1/

Look at "C.3. Empty Minimization and Empty Element Content" under appendix
"C. HTML Compatability Guidelines".

According to that spec, you must not use the short empty element version for
any element that does not have a content model of EMPTY. Title is one such
element, you must use <title></title>.

As per the note under the appendix C. heading, a pure XHTML rendered should
handle <title/> fine, but IE is not a pure XHTML renderer.

Dan
 
Back
Top