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
Download (untitled) / with headers
text/plain 823b
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...
Download (untitled) / with headers
text/plain 112b
Thanks, there's a patch for this in my github repo now: http://github.com/markstos/CGI.pm/tree/master Mark
Subject: Thanks, released
Download (untitled) / with headers
text/plain 160b
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


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.