[whatwg] Space characters

Elliotte Harold elharo at metalab.unc.edu
Mon Nov 6 05:31:00 PST 2006


Henri Sivonen wrote:

> Would there be serious compatibility problems if the HTML5 parsing 
> algorithm required VT and FF to be mapped to space (after expanding 
> NCRs) and the higher-level parts of the spec defined white space as 
> space, tab, CR and LF?
> 

That seems a reasonable solution to me. I doubt anyone these days is 
heavily depending on VT and FF. Mostly it's just random leftover 
detritus from very old text files.

It's important to note that if you allow VT and FF as those characters 
in the HTML serialization then:

1. The document has no infoset.
2. The document cannot be serialized as well-formed XHTML.

Is it a requirement of the spec that all HTML 5 DOMs be able to be fully 
serialized as XHTML as well as HTML 5? If not, why not?


-- 
Elliotte Rusty Harold  elharo at metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/



More information about the whatwg mailing list