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?

If that's _not_ the conclusion, then is the correct way to do this to set the title attribute in connectedCallback, or is this the kind of thing where there should also be an internal default, overridable by the public attribute?

-- 
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-506153284

Received on Thursday, 27 June 2019 04:34:39 UTC