about summary refs log tree commit diff stats
path: root/html
Commit message (Collapse)AuthorAgeLines
* Add Step attribute (#126)Markus Wüstenberg2023-01-17-0/+5
| | | | | See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#step Fixes #120.
* Add ColSpan and RowSpan attributes (#125)Markus Wüstenberg2023-01-17-0/+10
|
* Add EncType html attribute (#109)Markus Wüstenberg2022-09-29-0/+5
|
* Mark the assert test helpers as such (#90)Markus Wüstenberg2021-10-06-2/+2
| | | | | Using `t.Helper()`. Also move the assert package to be internal.
* Add loading and srcset HTML attributes (#86)Josep Jesus Bigorra Algaba2021-09-07-0/+10
| | | | | | | Useful for `img` and `picture` elements. Fixes #85. Co-authored-by: Josep Jesus Bigorra Algaba <josep@prowarehouse.nl>
* Add video element and related attributes (#84)Markus Wüstenberg2021-06-18-15/+40
| | | Adds the `video` element and `loop`, `muted`, `playsinline`, `poster` attributes.
* Add LinkStylesheet and LinkPreload components (#79)Markus Wüstenberg2021-06-08-0/+5
| | | These are often used in the `<head>` part of the HTML.
* Streamline HTML element API (#66)Markus Wüstenberg2021-05-05-102/+90
| | | | | There were a lot of elements previously, like `Em`, `H1`, and a lot more, that took a string as the first argument previously. This was weird when you wanted to mix elements to output html like `<strong><em>…</em></strong>` or `<h1>Something <em>something</em> something</h1>`. gomponents is not an HTML validator, so I want people to be able to use elements however they please, also without text content. This also means that all elements now have the same API.
* Return Node from all helpers instead of NodeFunc (#62)Markus Wüstenberg2021-01-07-108/+108
| | | | | This makes it clearer that the helpers return a `Node` of any kind, and that the type is not important. This also streamlines the API, as attribute helpers already return just `Node`.
* Add data- attribute helper (#61)Markus Wüstenberg2020-12-22-2/+14
| | | Fixes #49.
* Add aria-* and role attributes (#59)Markus Wüstenberg2020-12-22-0/+17
| | | Fixes #50.
* Simplify available elements (#55)Markus Wüstenberg2020-12-10-108/+63
| | | | | | | `a`, `form`, `img`, `input`, `label`, `option`, `progress`, `select`, and `textarea` are now just regular elements (without helper parameters), because: - Sometimes the use case doesn't fit (`a` as anchor without href, for example) - There's no reason these are special among the others, so streamlining them makes sense Also added new attributes `action`, `alt`, `for`, `method` that I had somehow missed.
* Rename Document to Doctype (#54)Markus Wüstenberg2020-12-10-6/+6
|
* Move elements and attributes into html package (#52)Markus Wüstenberg2020-12-10-0/+893
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.