W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2012

Re: [DOM] DOM4 draft : getAttributeNode() and getAttributeNodeNS() substitute ?

From: Jonas Sicking <jonas@sicking.cc>
Date: Thu, 4 Oct 2012 13:29:17 -0700
Message-ID: <CA+c2ei8dD4oBObJG1CEKtJgt3OfXzW6a-6vyo+FXuXFwheG80g@mail.gmail.com>
To: Sylvain Spinelli <sylvain.spinelli@free.fr>
Cc: "Marat Tanalin | tanalin.com" <mtanalin@yandex.ru>, "www-dom@w3.org" <www-dom@w3.org>
On Thu, Oct 4, 2012 at 11:52 AM, Sylvain Spinelli
<sylvain.spinelli@free.fr> wrote:
> It's useful when you manipulate DOM trees. For example :
> - In a previous project I have implemented a xml editor : the DOM source (in
> any arbitrary schema xml) is traversed and binded with html widgets for
> editing. In the building editor process I need to keep some properties on
> each Attr object.
> - In a new project I work on an algorithm for identifying differences
> between two DOM trees. I need to get Attr object by its name and set some
> computed matching scores on it.

Why not store this information on the Element object instead?

/ Jonas
Received on Thursday, 4 October 2012 20:30:19 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:37:01 UTC