- Web Component is an experimental feature as of today 12/06/2014 in many major browser.
- document.registerElement() method is still not available by default in Chrome.
- In this Demo, “We will see how to enable web component experimental feature in chrome“.
- To enable the web component feature in Chrome use the chrome://flags command in a browser tab of command. This opens the all available feature present in the chrome.Locate the “Enable Experimental Web Platform Feature“.The click on the enable link.Then save and relaunch the chrome browser.
- Below screenshot shows the above step in a chrome browser.
- To test whether the web component feature issue the typeof document.registerElement().It will print as function which concludes that web components are available on the Chrome.
- Below screenshot shows the Firebug console for the above step.