This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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.
(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.
The error still occurs after fixing the doctype declaration. And why doesn't the broken doctype throw an error at all?
(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.
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.
(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.