php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #1814 <SCRIPT> tag not HTML 4.0 complient
Submitted: 1999-07-21 20:36 UTC Modified: 1999-07-22 08:05 UTC
From: sven at zen dot org Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0 Beta 1 OS: any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
19 + 47 = ?
Subscribe to this entry?

 
 [1999-07-21 20:36 UTC] sven at zen dot org
I would like my HTML document, even with all the PHP scripts in, to be HTML 4.0 complient.  To do PHP code that is HTML 4.0 complient one has to do:

	<SCRIPT LANGUAGE="php">

but the "LANGUAGE" option is deprecated in the HTML 4.0 standard.  The correct option line should be:

	<SCRIPT TYPE="application/x-httpd-php">

And also, the following doesn't work:

	<SCRIPT LANGUAGE="php" TYPE="application/x-httpd-php">

So I can't even shove the TYPE attribute in to make validators happy. 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-07-22 08:05 UTC] ssb at cvs dot php dot net
We never intended PHP code to actually validate with
an HTML validator.  It would not make sense anyway, since
your PHP code can produce as much invalid HTML as it likes,
the validator would never know.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 06 05:01:31 2024 UTC