This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author akuchling
Recipients
Date 2005-11-22.21:21:41
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=11375

I can trigger this exception by calling the normalize()
method on a childless DOM node such as Text.  A little
script is attached. 

The question is: what should normalize() do for a class such
as Text?  Looking at the DOM Level 1 specification,
.normalize() is actually part of the Element interface, not
Node, so things like Text.normalize() wouldn't work at all.

One solution: move normalize() onto the Element class. 
Possibly backwards-incompatible.

Another solution: add a normalize() method to the Childless
mix-in that raises an exception.
History
Date User Action Args
2007-08-23 14:15:21adminlinkissue777884 messages
2007-08-23 14:15:21admincreate