Thursday, July 4, 2013

Re: Allowed Element property value's?

That did the trick ;).. Thanks, it works when using getAttribute().
I tried that before, but got an exception because I was doing a getAttribute() on a text Note (using instanceof Element instead of Element.is(..) ;).

And from this stackoverflow post, I thought that I should use getProperty() after reading Daniel his explanation:

A bit confusing this Property/attribute thing...
- Ed



On Thu, Jul 4, 2013 at 8:48 PM, Jens <jens.nehlmeier@gmail.com> wrote:
To be more precise:

You can use getProperty() for actual properties like id. A list of all properties of a DOM element: https://developer.mozilla.org/en-US/docs/Web/API/element

For everything else you have to use getAttribute().

-- J.

--
You received this message because you are subscribed to a topic in the Google Groups "Google Web Toolkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/_W_6ZLRHhm0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate