Shinmera / plump

Practically Lenient and Unimpressive Markup Parser for Common Lisp
https://shinmera.github.io/plump
zlib License
119 stars 21 forks source link

Fix <a> not being defined as a grouping element #27

Closed jorams closed 4 years ago

jorams commented 4 years ago

Without this, Plump can generate an empty <a> as <a href="#"/>, which is interpreted by browsers as just a starting tag.

It's not entirely clear to me what the scope of "grouping elements" is, but since <i> is in there I figured <a> would fit as well.

Shinmera commented 4 years ago

Grouping elements are elements that HTML defines to require a closing tag, but which cannot be self-closed with <foo/>, so they have to be <foo></foo>.