W3C home > Mailing lists > Public > spec-prod@w3.org > October to December 2013

Re: ReSpec 3.2

From: Robin Berjon <robin@w3.org>
Date: Mon, 21 Oct 2013 12:39:40 +0200
Message-ID: <5265046C.90708@w3.org>
To: shane@aptest.com
CC: Shane McCarron <ahby@aptest.com>, Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no>, "spec-prod@w3.org" <spec-prod@w3.org>
On 21/10/2013 04:04 , Shane McCarron wrote:
> Okay - I am on it.  I suspect that the browsers (some anyway) are going
> to strip the CDATA nodes out.  I might end up just injecting the best
> practice CDATA into each relevant section (style and script) as per
> http://www.w3.org/MarkUp/2010/ED-xhtml-media-types-20100218/#compatGuidelines in
> guideline A.4

Irrespective of what the browser does, the XML serialiser treats CDATA 
section in the same way as text nodes anyway:

     https://github.com/darobin/respec/blob/develop/js/ui/save-html.js#L179

So if they are supposed to be kept, that's where the issue is.

-- 
Robin Berjon - http://berjon.com/ - @robinberjon
Received on Monday, 21 October 2013 10:39:50 UTC

This archive was generated by hypermail 2.3.1 : Monday, 21 October 2013 10:39:51 UTC