[kupu-dev] getSelectedNode IE

Duncan Booth duncan.booth at suttoncourtenay.org.uk
Sun Nov 19 18:05:00 CET 2006


ereteog <ereteog at gmail.com> wrote:

> it works well with firefox but we have a problem wih IE. I've tested
> and it appears that it's the function "kupu.getSelectedNode();" which
> doesn't work on IE.
> I've seen that there is a problem with this function on this
> discussion: 
> http://codespeak.net/pipermail/kupu-dev/2005-February/001131.html. how
> can I fix it? 

getSelectedNode is a deprecated alias for the parentElement method. You 
should use the latter name when calling it.

According to the thread you indicate getSelectedNode had some problems but 
they were all fixed. If you think there are further problems with the 
implementation of parentElement then what you should do is write a unit 
test which indicates the behaviour you are expecting and which passes on FF 
but not IE.

[When I say the problems were all fixed, I mean fixed for IE. Unfortunately 
two of the relevant tests still fail for opera.]



More information about the kupu-dev mailing list