Re: [PHP-DEV] [[PHP-DEV] <script type="..."> support (fwd)] From: Jon Parise (jon <email protected>)
Date: 08/16/01

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 <email protected>)  .  Rochester Inst. of Technology
http://www.csh.rit.edu/~jon/  :  Computer Science House Member

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>