[ v.2.8.4 ] artikel.tpl - 'scoped' argument in 'style' after 'script' - validation problems
..
Dear Thorsten Rinne / Development Team
W3C's validator - http://validator.w3.org/ - error message regarding the HTML5 "scoped" argument on:
- HTML code (at the end of 'artikel.tpl' file) [code]... }); </script> <style type="text/css" scoped> @import "assets/js/syntaxhighlighter/styles/shCore.css"; @import "assets/js/syntaxhighlighter/styles/shThemeDefault.css"; </style> <script src="assets/js/syntaxhighlighter/scripts/shCore.js"></script> <script src="assets/js/syntaxhighlighter/scripts/shAutoloader.js"></script> ...[/code][/*]
- URLs
https://faqs-tmp.up.pt/faq/content/69/1 ... essoa.html
or (URL's "short version")
https://faqs-tmp.up.pt/faq/solution_id_1.html
- generated code line
please see above
- validator's error message
Error Line 306, Column 42: Element style not allowed as child of element div in this context. (Suppressing further errors from this subtree.)
<style type="text/css" scoped>
Contexts in which element style may be used:
If the scoped attribute is absent: where metadata content is expected.
If the scoped attribute is absent: in a noscript element that is a child of a head element.
If the scoped attribute is present: where flow content is expected, but before any other flow content other than inter-element whitespace and style elements, and not as the child of an element whose content model is transparent.
Content model for element div:
Flow content. - validation link
http://validator.w3.org/check?uri=https ... &verbose=1
If using XHTML
Code: Select all
<style scoped="scoped" />
or in this case perhaps
Code: Select all
<div>
<style scoped="scoped">...</style>
...
</div>
..
Kind regards
2013-12-12
pt20100201
..