No Code Attached Yet
avatar pschmehl
pschmehl
4 Sep 2022

Steps to reproduce the issue

Look at a page using back to top on the w3c validator. You can view my test site: Test Site VVFH
W3C Validation

I'm using the Cassiopeia template. The back to the top button is selected in the Advanced tab of the Template Style.

Expected result

Passes w3c validation

Actual result

Error: Element style not allowed as child of element body in this context. (Suppressing further errors from this subtree.)
From line 171, column 5; to line 171, column 11
<style> .jj-
Contexts in which element style may be used:
Where metadata content is expected.
In a noscript element that is a child of a head element.
Content model for element body:
Flow content.

System information (as much as possible)

LAMP system running Joomla 4.2.2 (upgraded from 3.10.11) with php 8.0.22, LiteSpeed V8.0.1 Cloudlinux 1.3, and mariadb 10.3.35

Additional comments

I tested surrounding the social slider code with a div, but that did not clear the error.

avatar pschmehl pschmehl - open - 4 Sep 2022
avatar pschmehl pschmehl - change - 4 Sep 2022
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 4 Sep 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 4 Sep 2022
avatar dgrammatiko
dgrammatiko - comment - 5 Sep 2022

The validator is wrong, ignore it. From MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/noscript

Screenshot 2022-09-05 at 11 00 26

Also from the W3C specs: https://html.spec.whatwg.org/multipage/scripting.html#the-noscript-element

Screenshot 2022-09-05 at 11 01 59

Close this as false issue

avatar alikon alikon - change - 5 Sep 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-09-05 13:38:31
Closed_By alikon
avatar alikon alikon - close - 5 Sep 2022

Add a Comment

Login with GitHub to post a comment