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: 15359
Status: rejected
Priority: 0/
Queue: CGI

People
Owner: MARKSTOS [...] cpan.org
Requestors: leporis [...] pobox.sk
Cc:
AdminCc:

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



Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Subject: -no_xhtml pragma is not considered, when some form elements are created
X-RT-Original-Encoding: iso-8859-1
Content-Length: 320
Download (untitled) / with headers
text/plain 320b
perl: perl, v5.8.6 built for i386-linux-thread-multi affected module: CGI.pm-3.10, CGI.pm-3.11 -no_xhtml pragma is not considered, when html code is created for form elements in functions: textarea(), popup_menu(), scrolling_list(), _box_group() Variable $XHMTL is not checked and attribute -tabindex is always added.
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Charset: utf8
Content-Type: text/plain
Message-ID: <rt-3.6.HEAD-6413-1248137461-1508.15359-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 511
Download (untitled) / with headers
text/plain 511b
On Fri Oct 28 05:25:30 2005, guest wrote: Show quoted text
> perl: perl, v5.8.6 built for i386-linux-thread-multi > affected module: CGI.pm-3.10, CGI.pm-3.11 > > -no_xhtml pragma is not considered, when html code is created for form > elements in functions: textarea(), popup_menu(), scrolling_list(), > _box_group() > Variable $XHMTL is not checked and attribute -tabindex is always > added.
To proceed with this, please provide a link to a primary reference about the status of "tabindex" with regards to XHTML. Mark
MIME-Version: 1.0
In-Reply-To: <rt-3.6.HEAD-6413-1248137461-1508.15359-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
References: <rt-3.6.HEAD-6413-1248137461-1508.15359-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-24882-1285343240-1739.15359-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 579
Download (untitled) / with headers
text/plain 579b
Not sure about how the tabindex is different between HTML and XHTML. Not mentionned in http://www.w3.org/TR/xhtml1/#diffs But there is an other case where the -no_xhtml is ignored: the <meta> tags. Show quoted text
> print $cgi->start_html(-dtd => ["-//W3C//DTD HTML 4.01//EN",
"http://www.w3.org/TR/html4/strict.dtd"], -head => $cgi->meta({-http_equiv => 'Refresh', -content => 30})); produces Show quoted text
> <meta http-equiv="Refresh" content="30" />
This does not validate against validator.w3.org and was shown to raise issues in some (rare) browser: http://www.cs.tut.fi/~jkorpela/html/empty.html
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-2360-1290289403-341.15359-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 780
Download (untitled) / with headers
text/plain 780b
On Fri Oct 28 05:25:30 2005, guest wrote: Show quoted text
> perl: perl, v5.8.6 built for i386-linux-thread-multi > affected module: CGI.pm-3.10, CGI.pm-3.11 > > -no_xhtml pragma is not considered, when html code is created for form > elements in functions: textarea(), popup_menu(), scrolling_list(), > _box_group() > Variable $XHMTL is not checked and attribute -tabindex is always > added.
According to this reference, tabindex is part of XHTML: http://webdesign.about.com/od/htmltags/p/blattabindex.htm It's also part of HTML: http://www.w3.org/TR/html401/interact/forms.html#adef-tabindex Therefore, it seems reasonable that it is treated the same in HTML and XHTML. I'm therefore considering this bug report "rejected". Feel free to re-open if you find evidence to the contrary.
MIME-Version: 1.0
In-Reply-To: <rt-3.8.HEAD-24882-1285343240-1739.15359-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
References: <rt-3.6.HEAD-6413-1248137461-1508.15359-0-0 [...] rt.cpan.org> <rt-3.8.HEAD-24882-1285343240-1739.15359-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-2356-1290289532-1792.15359-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 705
Download (untitled) / with headers
text/plain 705b
Show quoted text
> But there is an other case where the -no_xhtml is ignored: the <meta>
tags. Show quoted text
>
> > print $cgi->start_html(-dtd => ["-//W3C//DTD HTML 4.01//EN",
> "http://www.w3.org/TR/html4/strict.dtd"], -head => > $cgi->meta({-http_equiv => 'Refresh', -content => 30})); > > produces >
> > <meta http-equiv="Refresh" content="30" />
> > This does not validate against validator.w3.org and was shown to raise > issues in some (rare) browser: > http://www.cs.tut.fi/~jkorpela/html/empty.html
This is a separate issue, so please open it in a new bug report, preferably with a Test::More-style test case that illustrates the behavior you expect compared to what happens. Thanks for the feedback. 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.