Bug #63439 [Opn->Wfx]: language attribute on script tags deprecated
| From: | aharvey@php.net | Date: | Tue, 06 Nov 2012 01:49:12 +0000 |
| Subject: | Bug #63439 [Opn->Wfx]: language attribute on script tags deprecated | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-174535@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63439&edit=1
ID: 63439
Updated by: aharvey@php.net
Reported by: alastair at propcom dot co dot uk
Summary: language attribute on script tags deprecated
-Status: Open
+Status: Wont fix
Type: Bug
Package: Scripting Engine problem
Operating System: all
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
Since it's handled on the server side and the user agent never sees it, compliance with HTML is
rather pointless.
If anything, I think we'd be more likely to look at deprecating the <script> form
altogether, rather than adding new variations.
Closing Won't Fix.
Previous Comments:
------------------------------------------------------------------------
[2012-11-05 15:21:30] alastair at propcom dot co dot uk
Description:
------------
PHP can be opened with <script language="php">
But the language attribute is deprecated:
http://www.w3.org/TR/html4/interact/scripts.html
It should use "type" instead.
Also the tag does not support charset.
Test script:
---------------
<script language="php">
echo "Hello";
</script>
<script type="application/php">
echo "Hello"
</script>
Expected result:
----------------
<script language="php">
echo "Hello";
</script>
Hello
Actual result:
--------------
Hello
<script type="application/php">
echo "Hello"
</script>
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63439&edit=1