Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: PHP/HTML "language" vs "type" attributes of "Script"


Message #1 by "Dale E. Strickler" <DaleS@D...> on Fri, 01 Mar 2002 13:18:12 -0500
Yep, I've used this one a number of times!  I have tidy 
(http://www.w3.org/People/Raggett/tidy/), built into me editor at this 
point so I mainly use it.  It has been fine with language=  (as have I!)

At 12:55 PM 3/1/02 -0800, you wrote:

>You might just want to use this one:
>
>http://validator.w3.org/file-upload.html
>
> > -----Original Message-----
> > From: Dale E. Strickler [mailto:DaleS@D...]
> > Sent: Friday, March 01, 2002 12:51 PM
> > To: professional php
> > Subject: [pro_php] Re: PHP/HTML "language" vs "type" attributes of
> > "Script"
> >
> >
> > Gee, those sound look like the same links I went down.  I now
> > need to find
> > out the validator that is being used and if there is any truth to
> > the value
> > checking of type=.
> >
> >
> > At 12:39 PM 3/1/02 -0800, you wrote:
> >
> > >Ah.
> > >
> > >Okay, you finally piqued my curiosity so I did a simple google search for
> > >"script type language standard".
> > >
> > >The first hit was the HTML 4.01 spec
> > >   http://www.w3.org/TR/html401/
> > >
> > >The second was the actual page that defines scripts.
> > >   http://www.w3.org/TR/REC-html40/interact/scripts.html
> > >
> > >Following the content-type link next to "type=" leads me to this:
> > >Examples of content types include "text/html", "image/png", "image/gif",
> > >"video/mpeg", "text/css", and "audio/basic". For the current list of
> > >registered MIME types, please consult [MIMETYPES].
> > >
> > >MIMETYPES is a link
> > >   http://www.w3.org/TR/html401/references.html#ref-MIMETYPES
> > >
> > >which gives yet another link
> > >   ftp://ftp.isi.edu/in-notes/iana/assignments/media-types/
> > >
> > >which is useless.  =)  The mediatypes file I browsed through
> > list a bunch of
> > >different types, of which NONE seemed useful to specify a programming
> > >language (not even javascript).
> > >
> > >
> > >Anyway, scrolling a bit farther down the scripts.html page, I found this:
> > >
> > >18.2.2  Specifying the scripting language
> > >
> > >It seems that you can use meta tags or headers to specify the
> > language type,
> > >but I couldn't find a list of "standard" names for ANY language.
> > >
> > >
> > >nik
> > >
> > > > -----Original Message-----
> > > > From: Dale E. Strickler [mailto:DaleS@D...]
> > > > Sent: Friday, March 01, 2002 12:26 PM
> > > > To: professional php
> > > > Subject: [pro_php] Re: PHP/HTML "language" vs "type" attributes of
> > > > "Script"
> > > >
> > > >
> > > > Well yes, and no.  Since "type" in HTML 4.01 is designed to only use
> > > > 'standard' values validators are being taught the 'standard'
> > values, to
> > > > validate them.  The 'hack' would be straight forward but the
> > > > standard issue
> > > > persists.
> > > >
> > > >
> > > > At 03:12 PM 3/1/02 -0500, you wrote:
> > > > >I don't think it is a lack of standard.  I mean, nothing would
> > > > ever need to
> > > > >parse the <script type="php"> tag expect for the PHP
> > parser... which in
> > > > >essence is proprietary (in the loosest sense of the word).
> > > > >
> > > > >I think all it really is, is that the PHP parser WILL
> > interpret <script
> > > > >language="php"> tags and just is not told to interpret <script
> > > > type="php">
> > > > >tags.
> > > > >
> > > > >I would assume it would be a relatively simple source code hack
> > > > of the PHP
> > > > >parser to update it to the non-deprecated HTML style.
> > > > >
> > > > >Adam Lang
> > > > >Systems Engineer
> > > > >Rutgers Casualty Insurance Company
> > > > >http://www.rutgersinsurance.com
> > > > >----- Original Message -----
> > > > >From: "Dale E. Strickler" <DaleS@D...>
> > > > >To: "professional php" <pro_php@p...>
> > > > >Sent: Friday, March 01, 2002 3:05 PM
> > > > >Subject: [pro_php] Re: PHP/HTML "language" vs "type" attributes
> > > > of "Script"
> > > > >
> > > > >
> > > > > > Yes, I think Jacob, has summarized my situation well.
> > > > (Though I need to
> > > > > > find out who said the type="txt/php" worked on our ISP.)  In
> > > > looking at
> > > > >the
> > > > > > RFC2045 and RFC2046, the only documents I can find that
> > seem like they
> > > > > > would specify the "txt/php" value there is no talk of PHP.
> > > > My guess is
> > > > > > that there has be no registration of a standard "type" for
> > > > php.  Thus the
> > > > > > PHP interpreter does not interpret the non-defined standard type.
> > > > > >
> > > > > > I guess all  this is left is to figure out how to explain
> > the lack of
> > > > > > standard in this case.
> > > > > >
> > > > > > Thanks one and all for your input.
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > $subst('Email.Unsub').
> > > >
> > > > Best Regards,
> > > >
> > > > Dale E. Strickler
> > > > President and Sr. Consultant
> > > > ___________________________________
> > > > ___________________________________
> > > > Dessec Consulting
> > > > E-mail: DaleS@D...
> > > >   Voice:  xxx-xxx-xxxx
> > > >     FAX:  xxx-xxx-xxxx
> > > >     Web: www.dessec.com
> > > >
> > > >
> > $subst('Email.Unsub').
> > >
> > >
> >
> > Best Regards,
> >
> > Dale E. Strickler
> > President and Sr. Consultant
> > ___________________________________
> > ___________________________________
> > Dessec Consulting
> > E-mail: DaleS@D...
> >   Voice:  xxx-xxx-xxxx
> >     FAX:  xxx-xxx-xxxx
> >     Web: www.dessec.com
> >
> >
>
>

Best Regards,

Dale E. Strickler
President and Sr. Consultant
___________________________________
___________________________________
Dessec Consulting
E-mail: DaleS@D...
  Voice:  xxx-xxx-xxxx
    FAX:  xxx-xxx-xxxx
    Web: www.dessec.com


  Return to Index