W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2013

Re: E4H compatible with string templates

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Fri, 15 Mar 2013 01:31:13 +0100
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: <public-script-coord@w3.org>
Message-ID: <5bq4k8hsiegru7m8q4jrvs4v5dtu5510lt@hive.bjoern.hoehrmann.de>
* 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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:08 UTC