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

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 UTC