W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2000


From: Evan Lenz <elenz@xyzfind.com>
Date: Tue, 5 Sep 2000 12:39:46 -0700
To: <html-tidy@w3.org>

DOCTYPE declarations and namespace declarations are not the same thing, nor
do they necessarily depend on one another.  I would like to output XHTML
without a DOCTYPE declaration, but *with* an XHTML namespace declaration.

I'm using JTidy.  I see that in Lexer.java the setXHTMLDocType() method is
what's responsible for calling fixHTMLNameSpace() to include the namespace
declaration.  If the doctype mode is set to "omit", regardless of whether
setXHTML(true) was called, the method returns without calling
fixHTMLNameSpace().  Since they're two separate things, shouldn't
fixHTMLNameSpace() be called regardless of whether the doctype mode is
"omit"?  The answer to this seems to be to move the fixHTMLNameSpace()
method call to the top of the setXHTMLDocType() method.

Is there something I'm not considering here?


Evan Lenz
XYZFind Corp. "Building Better Search"
Received on Tuesday, 5 September 2000 15:37:21 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:48 UTC