Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the CGI CPAN distribution.

Report information
The Basics
Id: 27907
Status: resolved
Priority: 0/
Queue: CGI

People
Owner: MARKSTOS [...] cpan.org
Requestors: perl.cpan [...] harkless.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: XHTML should be auto-disabled for HTML 4 too, not just 2 and 3
Hi, Lincoln. The documentation for -no_xhtml includes "If start_html()'s -dtd parameter specifies an HTML 2.0 or 3.2 DTD, XHTML will automatically be disabled without needing to use this pragma.". Why does that only occur for HTML 2 and 3? It should occur for HTML 4 as well. Otherwise you get HTML validation errors for the xmlns="http://www.w3.org/1999/xhtml" and xml:lang="en-US" attributes of the <html> tag. Those attributes ought to only appear if you're actually using an XHTML DTD (either as the default, or explicitly). I have a script I make available to others to use on their sites, and I'm trying to write it so that users can select their desired HTML output type via a DTD setting, but I'm forced to disallow XHTML because I have to use the "use CGI qw(-no_xhtml)" pragma to allow HTML 4 to validate...
Thanks, there's a patch for this in my github repo now: http://github.com/markstos/CGI.pm/tree/master Mark
Subject: Thanks, released
The patch for this ticket has now been released in CGI.pm 3.47, and this ticket is considered resolved. Thanks again for you help to improve CGI.pm! Mark