How to create new instance of an extended class of custom elements

前端 未结 2 1219
隐瞒了意图╮
隐瞒了意图╮ 2020-11-30 12:51

I\'m trying the example from google developer site and I\'m getting Error: \"TypeError: Illegal constructor. What\'s wrong and How to fix it?

class FancyButt         


        
2条回答
  •  无人及你
    2020-11-30 13:35

    Blink, the web engine that currently implements Custom Element v1 (in Chrome v53+ for example) only supports autonomous custom elements: see open Blink bug.

    If you want to define customized built-in elements (i.e.

提交回复
热议问题