webcomponents.org icon indicating copy to clipboard operation
webcomponents.org copied to clipboard

runkit: ReferenceError: HTMLElement is not defined in webcomponent 1.2.2

Open matjung opened this issue 5 years ago • 0 comments

https://npm.runkit.com/webcomponent Are you aware that runkit is having an issue with webcomponent?

ReferenceError: HTMLElement is not defined

var webcomponent = require("webcomponent")

// a language issue: https://phabricator.babeljs.io/T1548
if (typeof HTMLElement !== 'function') {
  var _HTMLElement = function _HTMLElement() {};
  _HTMLElement.prototype = HTMLElement.prototype;
  HTMLElement = _HTMLElement;
}

matjung avatar Sep 16 '20 06:09 matjung