W3C home > Mailing lists > Public > public-html@w3.org > May 2008

Re: <script> for non-script content

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 14 May 2008 07:53:44 +0000 (UTC)
To: Philip Taylor <pjt47@cam.ac.uk>, Henri Sivonen <hsivonen@iki.fi>, Sam Ruby <rubys@us.ibm.com>
Cc: HTML WG <public-html@w3.org>
Message-ID: <Pine.LNX.4.62.0805140752180.12911@hixie.dreamhostps.com>

On Fri, 21 Dec 2007, Philip Taylor wrote:
> 
> http://quickstarts.asp.net/Futures/ajax/doc/components.aspx uses
>   <script type="text/xml-script">
> for embedding XML which gets interpreted by some other JavaScript code. No UA
> could ever process that XML natively like a proper script, since it would
> conflict with the JS's handling of the XML.
> 
> [...]
> 
> In the absence of a better solution, and in the interest of paving the cowpath
> (i.e. adopting people's current solution to the problem), <script> should be
> accepted for this use

Done.


> "In this case, the type attribute must be present and set to a MIME type 
> for which user agents probably won't ever implement support."

I've no idea how to test for that, or how to specify it.


> "XHTML documents should not use the script element in this way, as 
> techniques such as namespaces and CDATA sections allow better 
> solutions."

I haven't included this.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 14 May 2008 07:54:28 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:44:31 UTC