html - Polymer custom element tag appearing in the DOM -


i've started learning polymer custom elements.

i've created simple custom element, usage of follows:

<my_custom_element></my_custom_element>   

the template custom element is:

 <template>    <span>hello</span>  </template> 

if inspect dom using chrome dev tools, notice my_custom_element tag appears in dom. wasn't expecting this. expecting tag replaced template content. my_custom_element represent in own right?

i read :host can used style custom element internally within definition , it's used style host element itself. again don't understand means style host element in own right. isn't host element defined template content?

the web components model not use <my-custom-element> placeholder, actual , real html element complex behaviors , own contents.


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -