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
 [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: Fri Apr 26 16:01:29 2024 UTC