You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to closure-comp...@googlegroups.com
Hi,
What's the difference between Node and Element? The compiler complains that I'm giving him Node type while it expects Element type. Is it ok to typecast to Element or am I just hiding the problem.
TL;DR: The DOM interface uses subclassing a lot to differentiate
between different types of Nodes: Elements, TextNodes,
HTMLInputElements, etc.
Many closure-library functions are pretty liberal in what they accept
(for example, only Elements can have CSS classes, but if you really
want to read the CSS class of a Node, go right ahead), but there are
some cases where it really matters (like in Components).
pablo platt
unread,
Jul 21, 2012, 4:27:06 PM7/21/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message