Re: The future of XML related technologies in Mozilla

Ian Hickson <[email protected]> Wed, 1 Nov 2006 15:40:09 +0000 (UTC)
Newsgroups gmane.comp.mozilla.devel.xml
Message-ID <[email protected]>
On Tue, 31 Oct 2006, Boris Zbarsky wrote:
> > > 
> > > You can't use innerHTML on non-HTML nodes.  Assuming that you wanted 
> > > the part about SVG/MathML elaborated.  Or did you want something 
> > > else?
> > 
> > I don't understand why innerHTML wouldn't work on non-HTML nodes.
> 
> Maybe I'm naive, but it makes little sense to me to have an "innerHTML" 
> property on non-HTML nodes that does completely non-HTML things... 
> Expedient, maybe, but confusing in the long run.

Well, the reason would be "it's there" in the case of elements, and 
"consistency" in the case of documents. But the name isn't important to 
me (and your opinion on it has been noted), the important thing is that it 
makes document serialisation and parsing trivial.


> > Sure, just throw some things into document.domConfig.
> 
> Which document?  The ownerDocument of the node being serialized?

Yeah.


> > I can't really comment, since I don't understand the use case in the 
> > first place. I was assuming that the data would be sent to the server 
> > anyway.
> 
> The use case I'm thinking is communication between packages that a web 
> app uses...

Why wouldn't they just pass the raw Document or Element around?

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