XML rendering

Zack Rusin zack at kde.org
Fri Jun 4 18:35:16 CEST 2004


On Friday 04 June 2004 12:10, Leo Savernik wrote:
> Hmm, khtml could detect whether an xml document is served without a
> stylesheet (like Mozilla does already), and then set all the elements
> to display:none, and append an element containing a (e. g. tree-like)
> representation within the namespace html (which could be augmentend
> by JavaScript).

I'm afraid it wouldn't be enough. The original DOM tree has to stay 
untouched. Otherwise we need a very hacky implementation of XPath and 
DOM2 Traversal. Any changes on the original DOM tree for the purpose of 
the rendering could yield completely different query/searches results 
for the two above mentioned (which is why the method #1 has to 
duplicate the nodes in the render tree rather than use new ones)

Zack

-- 
Press any key to continue or any other key to quit...


More information about the Khtml-devel mailing list