[XML-SIG] DOM test failures

Thomas B. Passin tpassin@home.com
Fri, 14 Dec 2001 11:55:49 -0500


[Martin v. Loewis]

> With the changes to 4DOM a few weeks ago, a number of dom test cases
> stopped working now. I've corrected some occurrences of empty
> namespaces, but some of the remaining errors indicate genuine bugs in
> the implementation.
>
> For example, in test_node, the following sequence is executed
>
>     p = doc.createElement('PARENT')
>     if p.localName != None:
>         tester.error('Error getting localName')
>
> This test now fails, as localName is "PARENT". That appears to be in
> clear violation of DOM level 2, which says
>

I agree with the other comments about this, and I was thinking that this
construction is said to be better (wouldn't really affect anything here, but
for future reference):

    if p.localName is not None:

Thoughts?

Cheers,
Tom P