Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | Render correct HTML5 (#44) | Markus Wüstenberg | 2020-11-16 | -12/+24 |
| | | | | | | | | | Previously, elements of kind void and empty elements generally would be rendered auto-closing (with a final `/` character in the start tag), which is allowed sometimes but arguably wrong. See https://dev.w3.org/html5/spec-LC/syntax.html#end-tags This created problems with for example `textarea` and `script`, which cannot be auto-closing, or the browser renders it wrong. Also clarified in the docs that this library outputs HTML5. Fixes #42. | |||
* | Add element helpers and refactor (#34) | Markus Wüstenberg | 2020-10-28 | -0/+84 |
This change adds a lot of element helpers, and refactors: - helpers into simple, text, and other helpers - most tests into table-driven tests, so they're easier to read Thanks to @oderwat for pushing me to improve the tests. 😉 |