W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2014

Re: [whatwg] <script> content restrictions vis-a-vis HTML template data blocks

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Fri, 7 Nov 2014 12:52:01 -0800
Message-ID: <CABZUbM2hmYyyZ-WridCUHdpRcSz9WtP1pU+h41a0O1E+CiNM7Q@mail.gmail.com>
To: Ian Hickson <ian@hixie.ch>
Cc: whatwg@whatwg.org, Jesse McCarthy <whatwg-2010-04@jessemccarthy.net>
On 11/7/14, Ian Hickson <ian@hixie.ch> wrote:
> On Wed, 5 Nov 2014, Jesse McCarthy wrote:
>>
>> Re: the "Restrictions for contents of script elements" (4.12.1.2):
>>
>> Consider <script> elements containing data blocks. It's useful to embed
>> templates in these; HTML templates for example. When embedding HTML
>> templates,
>> it would be onerous to have to either omit comments or implement an
>> escaping /
>> unescaping regimen.
>
> Have you considered using the <template> element?
>
>
Also, look up HTML imports using LINK element. Works well with scoped
stylesheets.
-- 
Garrett
@xkit
ChordCycles.com
garretts.github.io
Received on Friday, 7 November 2014 20:52:25 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:32 UTC