christoffer / pycharm-pyxl

IntelliJ Pyxl Extensions
MIT License
21 stars 3 forks source link

<br> wrongly requires a <br/> #14

Closed nilsbunger closed 9 years ago

nilsbunger commented 10 years ago


is self-closing in HTML; our parser however doesn't recognize it.

bspkrs commented 10 years ago

<br/> is actually the proper tag for html carriage returns. <br> is only supported for legacy code.

nilsbunger commented 9 years ago

This applies more broadly. I just hit it on < img > as well. According to http://w3c.github.io/html-reference/syntax.html, this list is all valid as "void elements" (no closing tag): area, base, br, col, command, embed, hr, img, input, keygen, link, meta, param, source, track, wbr

christoffer commented 9 years ago

Pyxl doesn't support the self-closing tags without the slash (or the html5 closing tag-free variants of <p>, <li> etc.).