Problem with w3c check

Posted in: Newsmag
Post count: 1

Good morning:
To validate w3c I get the following errors:
Error: Element style not allowed as child of element div In This context. (Suppressing further errors From this subtree.)
From line 430, column 1; to line 430, column 14
↩ </ div> ↩ <style scoped> .td_ui
Contexts in Which style element 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 is expected content, 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 div element:
Flow content.

How you could fix it?

Post count: 1291

Hi,

We use style tags inside div’s and that’s why you get this warning. It’s not an important warning so you can ignore it. In the future if we’ll find an alternative we’ll fix it.

Thank you, Emil G.

Post count: 108

any alternative yet?

Thank you

Post count: 9544

Also note, the ‘old/classic’ W3C checker had a lot of issues with HTML5 and nextgen HTML parsing; we went through this on a Bootstrap only project.

You might try the ‘nu’ version they are working on, which is ‘experimental’ for testing modern next-gen HTML5+ era code:
https://validator.w3.org/nu/

Chris

Post count: 6535

HI


@gregy1403
we still use inline css for our blocks. However this is on our todo list and we hope that we will find an alternative in shortest time possible.

Thanks!

Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.