[Fwd: Re: [xml] HTML vs html in DOCTYPE]
| From: | Christian Stocker | Date: | Thu, 30 Oct 2003 09:23:23 +0000 |
| Subject: | [Fwd: Re: [xml] HTML vs html in DOCTYPE] | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-5097@lists.php.net to get a copy of this message | ||
Here's the answer of the libxml2 guy
chregu
-------- Original Message --------
Subject: Re: [xml] HTML vs html in DOCTYPE
Date: Thu, 30 Oct 2003 04:21:58 -0500
From: Daniel Veillard <veillard@redhat.com>
Reply-To: veillard@redhat.com
To: Christian Stocker <chregu@php.net>
CC: xml@gnome.org
References: <3FA0CDEE.7090207@php.net>
On Thu, Oct 30, 2003 at 09:38:06AM +0100, Christian Stocker wrote:
Hi I just realized, that libxml2-2.6.0 outputs <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> with the html outpt, while 2.5.6 did: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> (HTML vs html) What's the reason for changing this? The lowercase isn't invalid per se but http://www.w3.org/QA/2002/04/valid-dtd-list.html and http://www.w3.org/TR/html401/sgml/dtd.html recommend using the Upper-Case version. Personally, I don't mind which version is used, just one of our test failed due to this issue and I'm wondering now, why this was changed or if it's even a bug ;)it was changed on-purpose. XHTML syntax is lowercase, basically this lowers the barrier when switching from SGML HTML to XHTML, and you have more chances of generating valid HTML in modern frameworks by using the lowercase version than when using the uppercase version. The world is slowly moving toward XHTML and this just reflects that tendancy :-) Daniel -- Daniel Veillard | Red Hat Network https://rhn.redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ -- christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich phone +41 1 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71 http://www.bitflux.ch | chregu@bitflux.ch | gnupg-keyid 0x5CE1DECB