Message17362
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.
|
|
Date |
User |
Action |
Args |
2007-08-23 14:15:21 | admin | link | issue777884 messages |
2007-08-23 14:15:21 | admin | create | |
|