XHTML character entity support

As noted in <http://www.whatwg.org/specs/web-apps/current-work/#writing-xhtml-documents 
 >, there is no guarantee that authors can use character entity  
references such as &nbsp; in XHTML, because XML parsers are not  
required to process external DTD subsets. This works in at least  
Firefox, Safari and Opera, but it's depressing that such a major  
feature is not interoperable per the spec.

I think that it's important to guarantee that character entity  
references work in XHTML (even when parsing fragments, e.g. with  
innerHTML - which doesn't currently work in Firefox or Safari, and is  
confusing to authors).

For obvious performance reasons, it is impractical to ask UAs to  
utilize validating XML parsers, so this guarantee may need to be  
specified in a way that doesn't require full DTD support.

- WBR, Alexey Proskuryakov

Received on Friday, 30 October 2009 23:11:12 UTC