[whatwg] Getting .innerHTML in XML well-formedness issues

On Tue, 10 Jul 2007, Simon Pieters wrote:
> > 
> > > What about when there are illegal characters?
> > 
> > The DOM doesn't let you create those cases.
> 
> Sure it does. e.g. the DOM allows e.g. control characters in various 
> places that XML doesn't. I haven't looked into every production in XML 
> to see if it differs from the DOM, but I guess you can spec something 
> that is catch-all, like "if the node contains a character that isn't 
> allowed according to the corresponding XML production" or some such... 
> though listing all cases is nicer.

That's what the spec now says.


> > I'm tempted to allow the serialisation of PIs with the name "xml", and 
> > to allow the splitting of CDATA blocks with ]]>. Opinions?
> 
> The former wouldn't result in well-formed XML, but the latter is cool.

I've decided to not allow it for now.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Tuesday, 12 August 2008 17:04:28 UTC