W3C home > Mailing lists > Public > public-rdfa-wg@w3.org > July 2011

ISSUE-99 (Live NodeLists and Graphs): Should all APIs utilize live NodeLists and live Graphs? [RDFa 1.1 API]

From: RDF Web Applications Working Group Issue Tracker <sysbot+tracker@w3.org>
Date: Sun, 10 Jul 2011 22:43:15 +0000
To: public-rdfa-wg@w3.org
Message-Id: <E1Qg2iZ-0005VF-K7@stu.w3.org>

ISSUE-99 (Live NodeLists and Graphs): Should all APIs utilize live NodeLists and live Graphs? [RDFa 1.1 API]

http://www.w3.org/2010/02/rdfa/track/issues/99

Raised by: Manu Sporny
On product: RDFa 1.1 API

Philip J├Ągenstedt wrote:

These now return NodeLists, but is it intentional that these collections are not live?

Manu Sporny wrote:

We /could/ return a live node list, but were concerned that it would hurt browser performance. This is an area where we could really use some of your input.

My understanding is that the Microdata spec suffers from the same issue - if you add an element to the DOM that contains an itemscope statement, the code managing the live NodeList that getItems() returns would have to detect the addition and re-parse at least part of the document in order to update the .properties collection, no?

We attempted to prevent this sort of mandatory re-parsing of the document unless the Web developer specifically requested it. 

The Working Group should analyze if there is any way to utilize live NodeLists and live Graph objects for all API implementations.
Received on Sunday, 10 July 2011 22:43:16 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 April 2012 04:55:17 GMT