Re: [webcomponents] lang and xml:lang should not use the flat tree (#385)

I think there's three kind of scenarios:

1. Component matches the language of the page so this doesn't matter. Component developers are unlikely to set lang/dir. This is probably the majority case.
2. Component does not match the language of the page. Given 1, this will be problematic since now screen readers etc. think the component is in the language of the page while it isn't.
3. Component uses the language of the page to render different strings to the user. For this case the default doesn't really matter and the component is best of querying the host element.

Basically, I think by catering to 1 by inheriting by default, we hurt 2. But maybe you're right and this is okay. Hmm.

---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/385#issuecomment-185715740

Received on Thursday, 18 February 2016 13:23:18 UTC