Re: hasAttribute and hasAttributeNS

Minor opportunity for memory-management optimization. Some DOMs (eg those
which run as proxy for other data representations) may not create actual
Attr objects until they're retrieved. hasAttribute tests for presence
without requiring that the object be instantiated.

Basically, it's a workaround for the fact that getAttribute can't
distinguish attribute-doesn't-exist from attribute-value-is-empty-string.

Not essential, but "mostly cheap and harmless".

______________________________________
Joe Kesselman  / IBM Research

Received on Thursday, 18 May 2000 17:24:07 UTC