A link element must not appear as a descendant of a body element unless the link element has an itemprop attribute or has a rel attribute whose value contains dns-prefetch, modulepreload, pingback, preconnect, prefetch, preload, prerender, or stylesheet.
This message appears when you use https://validator.w3.org/nu/ to validate a multilingual Joomla 4.x installation and adjusted the template by moving the <jdoc:include type="scripts" /> from the head element to just above </body>.
The error (which what it is according to the HTML validation) is caused by the following piece of code:
joomla-cms/plugins/system/languagefilter/languagefilter.php
Lines 860 to 871 in 81f067b
Do you all agree this needs to be fixed?
| Labels |
Added:
No Code Attached Yet
|
||
| Labels |
Added:
bug
|
||
I can confirm your findings. At least according to the docs this is a bug
joomla-cms/libraries/src/Document/HtmlDocument.php
Lines 483 to 497 in 81f067b