You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[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.
The priority of fallback for templateDefaultLang should be higher than that for defaultLang while the current implementation puts higher priority in defaultLang
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.
The text was updated successfully, but these errors were encountered:
[lit-html][templateDefaultLang] Try to get inexistent
defaultLang
repeatedly with mixedtemplateDefaultLang
Root Cause
templateDefaultLang
is different from thedefaultLang
( = initial<html lang>
), the element fails to fallback to itstemplateDefaultLang
but repeatedly tries to get its language JSON for thedefaultLang
if it is inexistentExpected Configurations to work around the issue
templateDefaultLang
values for some elements are mixed, thedefaultLang
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)
templateDefaultLang
should be higher than that fordefaultLang
while the current implementation puts higher priority indefaultLang
defaultLang
ifbundles[defaultLang][this.is]
is inexistentNotes
The text was updated successfully, but these errors were encountered: