Re: [w3c/webcomponents] Add global reflecting attributes to ElementInternals? (#821)

>> The example code you give doesn't seem to be a use case; I'm unclear what it's saying. Is the author trying to use title, unaware that it's a reflecting setter? Are they trying to set the title attribute, but unaware that you're not supposed to do that in constructors?
>
>I think the intent was just to add a tooltip, and the title attribute is the mechanism available. Is that something that should always be done via title attribute? If so, and if attribute are for external uses, does that imply that custom elements should never add tooltips to themselves?

Just adding a tooltip is a misguided way of thinking about `title` content attribute. In general, given there is no builtin element which sets title content attribute or any sort of default for its [advisory information](https://html.spec.whatwg.org/multipage/dom.html#advisory-information), I don't think custom elements implementations should do it either. `title` content attribute should be set by the users of custom elements instead.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/821#issuecomment-506181988

Received on Thursday, 27 June 2019 04:50:07 UTC