W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2007

[whatwg] xml:space

From: Henri Sivonen <hsivonen@iki.fi>
Date: Mon, 22 Jan 2007 18:52:52 +0200
Message-ID: <A8806658-2DF0-416F-83AD-31665F260C07@iki.fi>
On Jan 22, 2007, at 16:32, Henri Sivonen wrote:

> Since this editor artifact is harmless in browsers and useful in  
> editors, it would be nice if the spec made it conforming at least  
> on the <pre> element in XHTML5.

Suggested text:
The xml:space attribute may be used on XHTML elements of XML  
documents. Authors must not use the xml:space attribute in HTML  
documents. The xml:space attribute, if present, must have the literal  
value "default" or the literal value "preserve". The meaning of this  
attribute is outside the scope of this specification.

If that's too permissive, here's what would minimally cover my use case:
In XHTML (but not in HTML), the element pre may have the attribute  
xml:space. If the attribute is present, the value of the attribute  
must be "preserve".

The first conforms to XML 1.0 for sure. The latter may not exactly,  
depending on spec interpretation.

-- 
Henri Sivonen
hsivonen at iki.fi
http://hsivonen.iki.fi/
Received on Monday, 22 January 2007 08:52:52 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:31 UTC