Re: instanceof check on element always return true?

2010-12-02 Thread Ed
How come you always know exactly to point out the correct piece of doc snippet ;).. That keeps suprising me... like you memorized them... thanks... Anyway, what is the best way to discover the element type in this case? For example an InputElement?... I can't use the tag name in the InputElement a

Re: instanceof check on element always return true?

2010-12-02 Thread Thomas Broyer
On 2 déc, 12:10, Ed wrote: > I receive an element in a Clickhandler like this: > final Element el = event.getNativeEvent().getEventTarget().cast() > > It concerns a DIV element which the tag name shows. > > However, the following result in true: > el instanceof DivElement (as expected). > el ins

instanceof check on element always return true?

2010-12-02 Thread Ed
I receive an element in a Clickhandler like this: final Element el = event.getNativeEvent().getEventTarget().cast() It concerns a DIV element which the tag name shows. However, the following result in true: el instanceof DivElement (as expected). el instanceof InputElement (not expected!!). el in