about summary refs log tree commit diff stats
path: root/components/documents_test.go
Commit message (Collapse)AuthorAgeLines
* Delete low-value helper components (#115)Markus Wüstenberg2022-11-03-32/+0
| | | | I'd rather reserve the package for components that have proven repeatedly useful, like `Classes` and `HTML5`.
* Mark the assert test helpers as such (#90)Markus Wüstenberg2021-10-06-1/+1
| | | | | Using `t.Helper()`. Also move the assert package to be internal.
* Move elements and attributes into html package (#52)Markus Wüstenberg2020-12-10-7/+6
| | | | | This makes it easier to use dot-imports. Also updated the readme and examples with new usage, and move the `Classes` helper into the `components` package.
* Render correct HTML5 (#44)Markus Wüstenberg2020-11-16-2/+2
| | | | | | | | | 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 HTML5 document template (#36)Markus Wüstenberg2020-10-29-0/+33