Invalid HTML in cookie notice markup
-
Hi,
I am doing some HTML validation work on a client site and testing it using the validator at https://validator.w3.org. The validator is highlighting the invalid usage of adivelement within aspanelement within the cookie notice.There is actually a closed issue about this in this support channel, however it incorrectly guides people to edit the markup in the plugin settings in WordPress at
Cookie Law Settings > Customise cookie bar > Message. That Message text / markup is the content that is wrapped by thespantag within the cookie notice markup and it is not possible to edit that parentspanthere.Ideally this would be changed to use a
divelement instead.Looking at the source code the
spantag that wraps it is found at line 240 of this source file:I can see there is a CSS style specifically targeting that span element:
#cookie-law-info-bar span { vertical-align: middle; }This is at line 25 of:
This would need updated to refer to
div.Thanks for your time, I apologise if there is some specific reason why a
spanhas been used here, hopefully I’m not presenting an overly simplified solution to the issue.The page I need help with: [log in to see the link]
The topic ‘Invalid HTML in cookie notice markup’ is closed to new replies.