[ v.2.8.4 ] artikel.tpl-'scoped' argument in 'style'...probl

Please report bugs here!

Moderator: Thorsten

Post Reply
pt20100201
Posts: 133
Joined: Mon Feb 01, 2010 2:11 pm
Location: Porto . Portugal
Contact:

[ v.2.8.4 ] artikel.tpl-'scoped' argument in 'style'...probl

Post by pt20100201 » Thu Dec 12, 2013 2:31 pm

.
[ 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][/*]
Example Result and validator's error message (first occurrence)
  • 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
Note
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
..

Thorsten
Posts: 14793
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: [ v.2.8.4 ] artikel.tpl-'scoped' argument in 'style'...p

Post by Thorsten » Thu Dec 12, 2013 8:09 pm

Hi,

thanks, fixed in 2.8.5

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Post Reply