Re: iterator implemented in DOMConfiguration

On Mon, 2003-08-11 at 13:43, Jeffery B. Rancier wrote:
> Would an iterator make sense in the DOMConfiguration?  That would
> allow the properties to be discovered dynamically, instead of
> hardwiring strings like "canonical-form" in applications.  Or perhaps
> a getNextProperty()?

We added a read-only attribute parameterNameList, of type DOMStringList,
on the DOMConfigurationList. This gives you the possiblity of iterating
through the parameter names supported by the object. Note that this list
can also contain parameter names defined outside the specification.,
i.e. extensions provided by the implementation.

Philippe

Received on Thursday, 28 August 2003 16:41:13 UTC