Inheriting from HTMLFormElemnet

10 views
Skip to first unread message

Mohsen Azimi

unread,
Mar 14, 2015, 10:25:49 PM3/14/15
to webcom...@googlegroups.com
When I inherit from from element, doesn't this mean that my element will automatically get form element's behaviors like form submit? Why my element that inherits from from is not doing from submission?

I've made this bin to demonstrate what I mean. 

Thanks,
Mohsen

Rob Dodson

unread,
Mar 16, 2015, 11:46:36 AM3/16/15
to webcom...@googlegroups.com
To extend a native element as you're trying to do, you'll need to create a type extension element, the syntax is a little different.

Here's a working example: http://jsbin.com/qolado/2/edit

--
You received this message because you are subscribed to the Google Groups "Web Components Organisation" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webcomponent...@googlegroups.com.
To post to this group, send email to webcom...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/webcomponents/1ea1401b-8a33-45ce-9996-beef762a64ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages