This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 5349 - XHTML 1.0 Strict validation thinks <u> is not valid
Summary: XHTML 1.0 Strict validation thinks <u> is not valid
Status: CLOSED INVALID
Alias: None
Product: Validator
Classification: Unclassified
Component: Parser (show other bugs)
Version: HEAD
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-07 09:56 UTC by Stephen Clouse
Modified: 2008-01-08 00:58 UTC (History)
0 users

See Also:


Attachments

Description Stephen Clouse 2008-01-07 09:56:51 UTC
Validating this simple document:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Validate</title>
</head>
<body>
    <div>This is a <u>test</u></div>
</body>
</html>

results in:

Line 9, Column 21: element "u" undefined.

This is obviously broken.
Comment 1 Olivier Thereaux 2008-01-07 11:45:26 UTC
(In reply to comment #0)
> Validating this simple document:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE html
>   PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml11/DTD/xhtml1-strict.dtd">

your doctype declaration is broken. The second part of it (http://www.w3.org/TR/xhtml11/DTD/xhtml1-strict.dtd) does not exist.
See http://www.w3.org/QA/2002/04/valid-dtd-list.html for a list of recommended (and working) doctype declarations.
Comment 2 Stephen Clouse 2008-01-07 12:30:27 UTC
The error still occurs after fixing the doctype declaration.

And why doesn't the broken doctype throw an error at all?
Comment 3 Olivier Thereaux 2008-01-07 13:06:47 UTC
(In reply to comment #2)
> The error still occurs after fixing the doctype declaration.

Well, which DTD are you using in the end?
u being a presentational element, is not in strict XHTML document types. Use transitional, or, better, use CSS.
Comment 4 Stephen Clouse 2008-01-07 22:00:29 UTC
Then someone needs to fix the annotated DTD:

http://www.w3.org/TR/xhtml1/dtds.html#a_dtd_XHTML-1.0-Strict

It shows u as being part of strict.  The actual DTD does not.

Guess that's all.  Sorry.
Comment 5 Olivier Thereaux 2008-01-08 00:58:11 UTC
(In reply to comment #4)
> Then someone needs to fix the annotated DTD:
> http://www.w3.org/TR/xhtml1/dtds.html#a_dtd_XHTML-1.0-Strict
> It shows u as being part of strict.  The actual DTD does not.

As far as I can tell only the Transitional annotated DTD shows the underline. What is confusing is that all three annotated DTDs are on the same page, so a search may make you jump from one to the other.