Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[lit-html][templateDefaultLang] Try to get inexistent defaultLang repeatedly with mixed templateDefaultLang #72

Closed
t2ym opened this issue Feb 24, 2019 · 0 comments

Comments

@t2ym
Copy link
Owner

t2ym commented Feb 24, 2019

[lit-html][templateDefaultLang] Try to get inexistent defaultLang repeatedly with mixed templateDefaultLang

Root Cause

  • If an element's templateDefaultLang is different from the defaultLang ( = initial <html lang>), the element fails to fallback to its templateDefaultLang but repeatedly tries to get its language JSON for the defaultLang if it is inexistent

Expected Configurations to work around the issue

  • If different templateDefaultLang values for some elements are mixed, the defaultLang has to be set as empty, i.e., the initial <html lang> attribute of the document must be inexistent. In other words, if the default language of the document is not specified, elements can fail back to their own template language.

Potential Fix (Under Investigation)

Notes

  • The risks of unexpected side-effects of the priority changes would be higher than those of the simple workaround above, the priority change is put off for now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant