WMR 2.0.0 new prerender()
returned head
object with lang
property causes all existing attributes to be removed (as documented in source code)
#593
Labels
bug
Something isn't working
I know that you know :D
wmr/packages/wmr/src/lib/prerender.js
Lines 203 to 207 in 00ed4e1
...but I just wanted to file an issue so that this problem isn't "forgotten" due to other development priorities.
My workaround for this bug is to not set
lang
inhead
, and to supply the attribute directly inindex.html
(alongside the other attributes I need, notablydir="ltr"
). There are of course other possible workarounds, such as settingdir="ltr"
onbody
instead, but I have other attributes on thehtml
root element which are used to enforce CSS specificity (notably:id
).So for me this is not a deal breaker as I can just set all required attributes statically in
index.html
, but this could be problematic for other devs.The text was updated successfully, but these errors were encountered: