Re: diff for DOM?

Hi Shadi,

I guess it should be possible to use an XML diff tool on the serialised
form of a DOM level 3 tree using the LS interface. However this would
require some way of normalising HTML to XML.

I would still guess, that there may be more than one way to
interpret the conversion via the LS interface, so that different
implementations might differ in subtle ways, however I have got no
practical experience to back up whether this is true or not?

Mvh.
Nils

Mvh.
Nils Ulltveit-Moe

man, 11,.04.2005 kl. 12.37 +0200, skrev Shadi Abou-Zahra:
> Hi,
> 
> Just a random idea that I haven't worked out in detail but has anyone heard of diff for DOM tress (as opposed to line based documents)?
> 
> It would seem that a couple of simple operations could describe quite complex changes to DOM based pages. I'm thinking of things like:
> 
> ADDED <NODE> <VALUE>
> REMOVED <NODE>
> MODIFIED <NODE> <LINE-DIFFS>
> MOVED <NODE> <NODE>
> 
> Any comments?
> 
> Best,
>   Shadi
> 
> 
> ---                                                    --- 
> Shadi Abou-Zahra,  Web Accessibility Specialist for Europe 
> World Wide Web Consortium (W3C),        http://www.w3.org/ 
> Web Accessibility Initiative (WAI), http://www.w3.org/WAI/ 
> Evaluation and Repair Tools WG,  http://www.w3.org/WAI/ER/ 
> 2004, Route des Lucioles - 06560 Sophia-Antipolis - France 
> Voice: +33(0)4 92 38 50 64        Fax: +33(0)4 92 38 78 22 
> 
> 
-- 
Nils Ulltveit-Moe <nils@u-moe.no>

Received on Monday, 11 April 2005 10:48:37 UTC