Re: [[PHP-DEV] <script type="..."> support (fwd)]
| From: | Jon Parise | Date: | Thu, 16 Aug 2001 17:19:53 +0000 |
| Subject: | Re: [[PHP-DEV] <script type="..."> support (fwd)] | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-63452@lists.php.net to get a copy of this message | ||
On Thu, Aug 16, 2001 at 08:15:25PM +0300, Zeev Suraski wrote:
> >actually, i think both TYPE and LANGUAGE are required for validation
> >purposes. it really needs to support
> >
> ><SCRIPT LANGUAGE="php" TYPE="application/x-httpd-php">
> >
> >but, as cynic put it best, i think it's a wonderful idea, but i don't know
> >if i count . . . .
>
> We need to look at what's the best way to support this though. HTML (or
> XHTML) is very loose as to which entry appears first, and to whatever other
> entries appear within the tag. The current scanner is not...
Agreed. For example, try throwing an ID="foo" attribute in the
<script> tag. The scanner will no longer recognize any of the
patterns (because it's only looking for whitespace in addition to
the known attributes).
--
Jon Parise (jon@csh.rit.edu) . Rochester Inst. of Technology
http://www.csh.rit.edu/~jon/ : Computer Science House
Member