W3C failure role="navigation"


Probably not a bug, but wasn’t sure which was the correct category. I’ve just been correcting any html issues using the w3C validator at https://validator.w3.org. It’s picking up on a line which starts: . It doesn’t seem to like role=“navigation”. The page passes if I manually remove the code. Is there a way to stop Webflow from generating this? See screenshot below:


Here you go - html - nav role=navigation - Stack Overflow

Seems like backwards compatibility, no harm in leaving it in, unless your OCD compels you too.
Twitter bootstrap uses it

1 Like

Thanks for the info Aidz. Seems to be a lot of it about. Although non Webflow code, I’m currently fighting with scrolling=“no” frameborder=“0” within an iframe. W3C say no and to use style=“overflow:hidden;” however even Chrome completely ignores this. At least the Validator no longer ranks as fail or pass so I guess I can ignore the OCDs!


I tend to stay away from validators…having had some inconsistent and downright wrong reviews.

‘overflow: hidden’ sounds right. Perhaps play around with the ‘position’ or ‘display’ attribute

Webflow if anything has prevented me from nesting the wrong controls in my site and other things I shouldn’t be doing. You can trust this tool! :blush:

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.