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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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: Mon May 06 05:01:31 2024 UTC