Plugin produces invalid HTML
-
The plugin shortcode adds a <style> tag outside of the <head> element, which causes the html validation to fail, so we can’t be WCAG 2.1 compliant.
Example of failure on https://validator.w3.org/
Error: Element style not allowed as child of element div in this context. (Suppressing further errors from this subtree.) From line 879, column 1; to line 879, column 23 <div>↩<style type="text/css">↩<!--↩ 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 div: If the element is a child of a dl element: one or more dt elements followed by one or more dd elements, optionally intermixed with script-supporting elements. If the element is not a child of a dl element: flow content.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Plugin produces invalid HTML’ is closed to new replies.