behave-contrib / behave-html-formatter

HTML formatter for Behave
https://pypi.org/project/behave-html-formatter/
GNU General Public License v3.0
7 stars 10 forks source link

HTML validation issues #2

Open bittner opened 3 years ago

bittner commented 3 years ago
From https://github.com/schidlo/behave-html-formatter/issues/6:

When you run the w3validator HTML validation service over the generated HTML code a few violations are reported:

L# Violation Suggested solution
210 type attribute in style shall be omitted Remove type parameter value
212 type attribute in script shall be omitted Remove type parameter value
228 p shall not wrap other paragraphs Use div instead
367 span tag shall not be self-closing (Make sure there is an opening and a closing tag)

Side note

It might be good practice to have a test suite that runs html5validator (container image) over a generated result.