Re: [webcomponents] More backward-compatible templates

On Fri, 02 Nov 2012 22:41:22 +0200, Adam Barth <w3c@adambarth.com> wrote:

>> I'm not sure offhand of the parsing behavior of <xmp>. Will it prevent  
>> the contents from being parsed as tags?
>
> Yes.  <xmp> is basically <![CDATA[...]]> for HTML.

There are differences, though:

* it closes <p>
* default style is display: block; margin-top: 1em; margin-bottom: 1em;  
font-family: monospace; white-space: pre; unicode-bidi: isolate;

-- 
Simon Pieters
Opera Software

Received on Friday, 2 November 2012 22:56:10 UTC