custom tags not working in ie8

后端 未结 2 1456
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-19 18:23

I tried making custom tags so that uses can enter text that displays something with red or bold etc when rendered as HTML for eg,

text here become         


        
2条回答
  •  無奈伤痛
    2020-12-19 18:57

    if you don't mind a little javascript:

    
    

    if you want to add several elements/tags, you can:

    
    

    Update

    Looks like ability to define custom elements is in the work (W3C Working Draft 6 June 2013)

    Some projects that use this:

    • Google’s Polymer
    • Mozilla’s X-Tags
    • Mozilla’s Brick

    See also:

    • Introducing Brick: Minimal-markup Web Components for Faster App Development (Aug 27, 2013)
    • Custom Elements: defining new elements in HTML (Aug 28, 2013)
    • Custom Elements: a web components gallery for modern web apps

提交回复
热议问题