PolymerElements / iron-doc-viewer

Polymer documentation viewer elements
17 stars 16 forks source link

Element superclass is always `HTMLElement` #168

Open galanovnick opened 6 years ago

galanovnick commented 6 years ago

Description

No matter which parent your class have, iron-doc-element always displays HTMLElement. If you try to replace superclass from the source JSON with another value, a computed reference in iron-doc-element will lead to https://baseurl/mixins/Superclass which is pretty weird. I'm not saying that it should find the real source URL of my superclass, but it's definitely shouldn't point to mixins.

image

class MyCustomElementExample extends MySuperclass { ... }

Expected outcome

The actual superclass is shown and its link does not refer to mixins.

Actual outcome

The HTMLElement superclass is shown.

galanovnick commented 6 years ago

The issue is probably connected to https://github.com/Polymer/polymer-analyzer/issues/750.