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)



Subject: -no_xhtml pragma is not considered, when some form elements are created
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.
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
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
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.
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