- From: j.j. <moz@jeka.info>
- Date: Mon, 10 Dec 2007 05:18:17 +0100
- To: Karl Dubost <karl@w3.org>
- Cc: public-html@w3.org
Karl Dubost <karl@w3.org>: hodd gsachd: > > Le 9 déc. 2007 à 17:03, j.j. a écrit : >> CON >> <xmp><![CDATA[ XHTML needs CDATA section. ]]></xmp> > > 1. that makes it more difficult to go from HTML to XHTML format to the other. Yes. > 2. That creates an issue with HTML http://tinyurl.com/2ep2dl > Rendered view: <![CDATA[<code>html without escaping</code>]]> There is no need for the CDATA section in HTML, why bother? You can use <pre><code> instead (if you want to serve XHTML markup as HTML). > 3. You can't use xmp inside xmp > <!DOCTYPE html> > <html> > <title>boo</title> > <xmp> Using <xmp>html code</xmp> to show the source code</xmp> > </html> Yes, and you can't drive your car without petrol. HTML code inside <xmp> is just one single usecase. <xmp> inside this HTML code is perhaps rare again. The author is free to choose an appropriate method for this problem. Again, you can use <pre><code> or markup like this: <xmp> <xmp> <\/xmp> </xmp> If you need the innerHTML data for processing, your script just has to remove the backslash. BTW, 3. can be solved by using another zombie: <plaintext> (No, I don't propagate it's use) j.j.
Received on Monday, 10 December 2007 04:18:37 UTC