Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

(ichimunki) Re: CGI.pm HTML vs. W3C HTML Validation

by ichimunki (Priest)
on Dec 29, 2001 at 02:13 UTC ( #134999=note: print w/ replies, xml ) Need Help??


in reply to CGI.pm HTML vs. W3C HTML Validation

HTML 2.0?? WTF? That's about eight years old now. I'm guessing that there are many newer tags and attributes that did not exist in 2.0. CGI.pm produces conformant XHTML, if not doing so, that's a bug report to write.


Comment on (ichimunki) Re: CGI.pm HTML vs. W3C HTML Validation
Re: (ichimunki) Re: CGI.pm HTML vs. W3C HTML Validation
by jlongino (Parson) on Dec 29, 2001 at 02:27 UTC
    BTW, I am making no assumptions as to what the problem is. I had noticed a few posts mention web pages that were not W3C compliant and figured that W3C was a useful resource.

    On the other hand I've had my share of Doh! posts, so I certainly wouldn't rule out pilot error. One URI I tested was this if that helps any.

    --Jim

      The doctype in that page is not what I would expect to see from a typical CGI.pm output, it lacks the usual version numbering and "strict", "transitional", etc information. That is causing the validator to assume the worst about the page. And I don't see anything on that page that wouldn't validate other than the header itself, unless BGCOLOR wasn't a valid attribute in 2.0.

      FWIW, I just submitted one of my own CGI.pm-made HTML docs and found that it does not validate, but because the header says the doctype is XHTML basic, and the header itself uses the lang attribute, which is not in basic apparently. So your point is perhaps valid, but this may even be fixed in newer versions of CGI (I'm on whatever ActiveState included with ActivePerl).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://134999]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2014-10-23 10:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (125 votes), past polls