Re: E4H compatible with string templates

* Tab Atkins Jr. wrote:
>In Hixie's E4H proposal, the contents of the holes *never* causes an
>error.  You can only put a hole as an attribute value or element text
>contents (or just contents, if we also allow the hole's value to be
>DOM).  These can't ever fail - you'll just stringify (or append, if
>it's DOM).

As I understand it, `@<p>{document.doctype}</p>` is a simple example
where an exception would be thrown (E4H is defined in terms of the
appendChild method, and p.appendChild(document.doctype) should throw).
And there are more drastic problems, like when running out of memory.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 

Received on Friday, 15 March 2013 00:31:38 UTC