Currently only properties are shown. This is fine for Polymer use cases, where all attributes are propagated as properties. However, analyzer supports vanilla custom elements, for which attributes are properties are distinct.
Attributes are picked up by analyzer. Sample source of observedAttributes.
https://github.com/samuelli/progress-bar/blob/ab8acaa186da2377a20b3e5f6f3b0501a8921dcc/progress-bar.html#L90
But iron-doc-element does not display the attribute: https://www.webcomponents.org/element/samuelli/progress-bar/v2.0.0
I propose that we show a list as follows:
Attributes & properties
attribute-property (HTML attribute) This is an attribute which is also a property
attributeProperty (JS property)
my-attribute (HTML attribute) This is just an attribute not found in properties
myProperty (JS property) This is just a property not found in attributes
The "HTML attribute" and "JS property" could just be shortened to "HTML" and "JS" and could be displayed as little tags like MDN does.


We have seen related requests to show separate attribute/property annotations:
Another related issue previously was annotations were too subtle & we could utilise the same tag concept:
webcomponents/webcomponents.org#796
Currently only properties are shown. This is fine for Polymer use cases, where all attributes are propagated as properties. However, analyzer supports vanilla custom elements, for which attributes are properties are distinct.
Attributes are picked up by analyzer. Sample source of
observedAttributes.https://github.com/samuelli/progress-bar/blob/ab8acaa186da2377a20b3e5f6f3b0501a8921dcc/progress-bar.html#L90
But
iron-doc-elementdoes not display the attribute: https://www.webcomponents.org/element/samuelli/progress-bar/v2.0.0I propose that we show a list as follows:
Attributes & properties
attribute-property(HTML attribute) This is an attribute which is also a propertyattributeProperty(JS property)my-attribute(HTML attribute) This is just an attribute not found in propertiesmyProperty(JS property) This is just a property not found in attributesThe "HTML attribute" and "JS property" could just be shortened to "HTML" and "JS" and could be displayed as little tags like MDN does.


We have seen related requests to show separate attribute/property annotations:
Another related issue previously was annotations were too subtle & we could utilise the same tag concept:
webcomponents/webcomponents.org#796