W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2006

[whatwg] Common Subset

From: Michel Fortin <michel.fortin@michelf.com>
Date: Fri, 8 Dec 2006 16:15:45 -0500
Message-ID: <B9203A5A-2B33-4AC0-B609-5EE1940611C1@michelf.com>
Replying to myself...

Le 8 d?c. 2006 ? 8:48, Michel Fortin a ?crit :

> <noscript> and document.write()
> workaround: create nodes programatically and avoid the use of  
> <noscript>.

Another noteworthy problem with the common subset about scripting is  
that it's really impractical to write some idioms. You can't have any  
instance of "<" or "&" in a script without throwing the document  
outside of the common subset: HTML requires them to be unencoded,  
XHTML requires them to be in a CDATA section or escaped as &lt; and  
&amp;. The CDATA solution would probably work in HTML, although it'd  
make the document non-conforming.

This applies to inline <style> too. It does not apply to external  
scripts and stylesheets.

(Note: I'm not asking that any of this be resolved, I just think that  
it's noteworthy.)

I've added this to the wiki page about the common subset:
<http://wiki.whatwg.org/wiki/Common_Subset>


Michel Fortin
michel.fortin at michelf.com
http://www.michelf.com/
Received on Friday, 8 December 2006 13:15:45 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:31 UTC