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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sven at zen dot org
New email:
PHP Version: OS:

 

 [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: Wed Apr 24 15:01:30 2024 UTC