[DPF] 4.3.2 exception on removal

Hi Jeremy,

This message contains a response to comments on

http://www.w3.org/TR/2004/WD-DPF-20041122/

s15.
4.3.2 exception on removal better?

I was surprised that accessing a property that has been deleted is
not an exception. If the WG has already considered and rejected such
a design choice, this comment is already adequately addressed. Otherwise
please consider it.

The DPF Working Group did consider this issue relating to properties  
within a DPFPropertyList. When the property list needs to be live,  
this poses certain problems. Considering the issues that may be  
raised, it was decided that the best way to maintain the states  
within the property list would be to point a property entry to a NULL  
node if it was removed. If the value of the node was accessed by the  
calling application and then the property was removed (thereby the  
application uses the stored value to access it again), then an  
INVALID_ACCESS_ERR exception would be raised.

-Keith Waters

Received on Friday, 3 June 2005 17:58:58 UTC