cenkalti / pyhtml

HTML generation library for Python
Other
70 stars 10 forks source link

reserve tag names not being corrected and incorrect closing of self-closing tags #11

Closed nihlaeth closed 7 years ago

nihlaeth commented 7 years ago

Here I am again. Found another couple of minor bugs.

I was looking at the HTML that I generated with pyhtml and noticed this:

<input_ id="character-name" name="name" placeholder="Character name" type="input"/>

input_ is not being corrected to input.

Also, I believe that a self-closing tag either needs no closing /, or a space and a /. Firefox source viewer marks it as an error in any case.

nihlaeth commented 7 years ago

update: Firefox also marks a space and a / as an error, so you can ignore my last comment. If I remember correctly, / closing is only for XHTML. But I don't think it actually breaks anything.

nihlaeth commented 7 years ago

update: now that the underscore is being stripped, Firefox no longer marks the closing as being an error.