- On this day 12th June 2014, Web Component Feature are yet to come in the browser.It is now is an Experimental feature for many latest browser.
- document.registerElement() function is not a default DOM function as of today in Firefox.
- In this Demo, “We will see How to enable the web component feature in Firefox“.
- In Firefox Browser address bar type about:config command to open the all the feature list present in Firefox.
- Then search for dom.webcomponents.enabled flag which is by default FALSE as of today.To enable this feature double click on it to make the flag to TRUE.
- Below screenshot shows the above step in Firefox.
- To test whether resisterElement() function is now working or not open the FIREBUG console and try this command typeof document.registerElement().This will print type as function.which shows that now the web component feature is enabled.
- Below screenshot demonstrate the above step:-