Bug #63439 [NEW]: language attribute on script tags deprecated
| From: | alastair at propcom dot co dot uk | Date: | Mon, 05 Nov 2012 15:21:30 +0000 |
| Subject: | Bug #63439 [NEW]: language attribute on script tags deprecated | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-174527@lists.php.net to get a copy of this message | ||
From: alastair at propcom dot co dot uk
Operating system: all
PHP version: Irrelevant
Package: Scripting Engine problem
Bug Type: Bug
Bug description:language attribute on script tags deprecated
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 bug report at https://bugs.php.net/bug.php?id=63439&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63439&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63439&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63439&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=63439&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=63439&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=63439&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=63439&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=63439&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=63439&r=support
Expected behavior: https://bugs.php.net/fix.php?id=63439&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=63439&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=63439&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=63439&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63439&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=63439&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=63439&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=63439&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=63439&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=63439&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=63439&r=mysqlcfg