[PHP-DOC] Bug #11874 Updated: <script> way of inline'ing PHP has quite strict syntax From: jeroen <email protected>
Date: 07/04/01

ID: 11874
Updated by: jeroen
Reported By: vinicius <email protected>
Old-Status: Feedback
Status: Open
Old-Bug Type: Scripting Engine problem
Bug Type: Documentation problem
Operating system:
PHP Version: Any
Assigned To:
Comments:

The script way of inline-ing php only works with

<script language="php">, and nothing else (no other attributes).

This is a speed issue: Zend doesn't implement a whole html-parser just to support this... in only accepts whiteshace difference and case-diffs.

There is no use for this too, since it will *not* be send to the browser. (RTFM on 'What it PHP': a preprocessor)

Documentation should be more clear on this, so changed to an open documention bug.

For the documenter: may add example that the context is not important? (i.e. <font size="<script php>echo '+1'</script>"> works)

Previous Comments:
---------------------------------------------------------------------------

[2001-07-04 13:26:27] derick <email protected>

I don't get what you are meaning here. Can you add an example of a whole line of both cases (one with the error, and one that works)?

Derick

---------------------------------------------------------------------------

[2001-07-04 07:31:00] vinicius <email protected>

The attribute 'content' inside '<script' tag is not being properly recognized in version 4.0.5.

If I insert it, the preprocessor returns an error condition. If I strip it, everything works fine.

---------------------------------------------------------------------------

ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11874&edit=2