tag:github.com,2008:https://github.com/purescript-web/purescript-web-html/releases Release notes from purescript-web-html 2025-11-19T02:46:14Z tag:github.com,2008:Repository/132890520/v4.1.1 2025-11-19T02:47:01Z v4.1.1 <p>New features:</p> <ul> <li>Added <code>HTMLDialogElement</code> module (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1218141379" data-permission-text="Title is private" data-url="https://github.com/purescript-web/purescript-web-html/issues/77" data-hovercard-type="pull_request" data-hovercard-url="/purescript-web/purescript-web-html/pull/77/hovercard" href="https://github.com/purescript-web/purescript-web-html/pull/77">#77</a> by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kgmt0/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kgmt0">@kgmt0</a>)</li> </ul> thomashoneyman tag:github.com,2008:Repository/132890520/v4.1.0 2022-09-19T22:38:13Z v4.1.0 <p>New features:</p> <ul> <li>Added <code>close</code> function for <code>Window</code> (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1344617620" data-permission-text="Title is private" data-url="https://github.com/purescript-web/purescript-web-html/issues/78" data-hovercard-type="pull_request" data-hovercard-url="/purescript-web/purescript-web-html/pull/78/hovercard" href="https://github.com/purescript-web/purescript-web-html/pull/78">#78</a> by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jmp-0x7C0/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jmp-0x7C0">@jmp-0x7C0</a>)</li> <li>Added <code>visibilityState</code> for <code>HTMLDocument</code> (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1377880330" data-permission-text="Title is private" data-url="https://github.com/purescript-web/purescript-web-html/issues/79" data-hovercard-type="pull_request" data-hovercard-url="/purescript-web/purescript-web-html/pull/79/hovercard" href="https://github.com/purescript-web/purescript-web-html/pull/79">#79</a> by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/garyb/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/garyb">@garyb</a>)</li> </ul> <p>Other improvements:</p> <ul> <li>Added <code>purs-tidy</code> config and format checking (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1377880330" data-permission-text="Title is private" data-url="https://github.com/purescript-web/purescript-web-html/issues/79" data-hovercard-type="pull_request" data-hovercard-url="/purescript-web/purescript-web-html/pull/79/hovercard" href="https://github.com/purescript-web/purescript-web-html/pull/79">#79</a> by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/garyb/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/garyb">@garyb</a>)</li> <li><code>HTMLDocument</code>'s FFI is now implemented in terms of <code>EffectFn</code> (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1377880330" data-permission-text="Title is private" data-url="https://github.com/purescript-web/purescript-web-html/issues/79" data-hovercard-type="pull_request" data-hovercard-url="/purescript-web/purescript-web-html/pull/79/hovercard" href="https://github.com/purescript-web/purescript-web-html/pull/79">#79</a> by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/garyb/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/garyb">@garyb</a>)</li> </ul> garyb tag:github.com,2008:Repository/132890520/v4.0.0 2022-04-27T23:37:46Z v4.0.0 <p>Breaking changes:</p> <ul> <li> <p>Migrate FFI to ES modules (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1177332171" data-permission-text="Title is private" data-url="https://github.com/purescript-web/purescript-web-html/issues/71" data-hovercard-type="pull_request" data-hovercard-url="/purescript-web/purescript-web-html/pull/71/hovercard" href="https://github.com/purescript-web/purescript-web-html/pull/71">#71</a> by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/JordanMartinez/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/JordanMartinez">@JordanMartinez</a>)</p> </li> <li> <p>Make <code>autocomplete</code> take a <code>String</code> arg, not Boolean (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1180247498" data-permission-text="Title is private" data-url="https://github.com/purescript-web/purescript-web-html/issues/72" data-hovercard-type="pull_request" data-hovercard-url="/purescript-web/purescript-web-html/pull/72/hovercard" href="https://github.com/purescript-web/purescript-web-html/pull/72">#72</a> by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/JordanMartinez/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/JordanMartinez">@JordanMartinez</a>)</p> </li> <li> <p>Move <code>getBoundingClientRect</code> to <code>purescript-web-dom</code> (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1180270599" data-permission-text="Title is private" data-url="https://github.com/purescript-web/purescript-web-html/issues/73" data-hovercard-type="pull_request" data-hovercard-url="/purescript-web/purescript-web-html/pull/73/hovercard" href="https://github.com/purescript-web/purescript-web-html/pull/73">#73</a> by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/JordanMartinez/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/JordanMartinez">@JordanMartinez</a>)</p> </li> <li> <p>Drop duplicated <code>set/getClassName</code> and <code>classList</code> (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1180861549" data-permission-text="Title is private" data-url="https://github.com/purescript-web/purescript-web-html/issues/74" data-hovercard-type="pull_request" data-hovercard-url="/purescript-web/purescript-web-html/pull/74/hovercard" href="https://github.com/purescript-web/purescript-web-html/pull/74">#74</a> by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/JordanMartinez/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/JordanMartinez">@JordanMartinez</a>)</p> <p>These three entities are already defined in <code>purescript-web-dom</code></p> </li> </ul> JordanMartinez tag:github.com,2008:Repository/132890520/v3.2.1 2022-02-09T20:34:54Z v3.2.1 <p>Bugfixes:</p> <ul> <li>Added missing type class instance names for <code>DataTransferItemKind</code> (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1128977441" data-permission-text="Title is private" data-url="https://github.com/purescript-web/purescript-web-html/issues/69" data-hovercard-type="pull_request" data-hovercard-url="/purescript-web/purescript-web-html/pull/69/hovercard" href="https://github.com/purescript-web/purescript-web-html/pull/69">#69</a> by @ptrfrncsmrph)</li> </ul> thomashoneyman tag:github.com,2008:Repository/132890520/v3.2.0 2021-10-08T17:40:15Z v3.2.0 <p>New features:</p> <ul> <li>Added <code>items</code> function for <code>DataTransfer</code> and related types (<code>DataTransferItem</code>, <code>DataTransferItemList</code>) (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="832932842" data-permission-text="Title is private" data-url="https://github.com/purescript-web/purescript-web-html/issues/55" data-hovercard-type="pull_request" data-hovercard-url="/purescript-web/purescript-web-html/pull/55/hovercard" href="https://github.com/purescript-web/purescript-web-html/pull/55">#55</a> by @ptrfrncsmrph)</li> <li>Added <code>languages</code> value for <code>Navigator</code> (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="945583755" data-permission-text="Title is private" data-url="https://github.com/purescript-web/purescript-web-html/issues/59" data-hovercard-type="pull_request" data-hovercard-url="/purescript-web/purescript-web-html/pull/59/hovercard" href="https://github.com/purescript-web/purescript-web-html/pull/59">#59</a> by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/toastal/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/toastal">@toastal</a>)</li> <li>Added <code>HTMLHtmlElement</code> module and <code>documentElement</code> function <code>HTMLDocument</code> (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="947044304" data-permission-text="Title is private" data-url="https://github.com/purescript-web/purescript-web-html/issues/60" data-hovercard-type="pull_request" data-hovercard-url="/purescript-web/purescript-web-html/pull/60/hovercard" href="https://github.com/purescript-web/purescript-web-html/pull/60">#60</a> by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/toastal/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/toastal">@toastal</a>)</li> <li>Added <code>onLine</code> value for <code>Navigator</code> (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="957202094" data-permission-text="Title is private" data-url="https://github.com/purescript-web/purescript-web-html/issues/61" data-hovercard-type="pull_request" data-hovercard-url="/purescript-web/purescript-web-html/pull/61/hovercard" href="https://github.com/purescript-web/purescript-web-html/pull/61">#61</a> by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/toastal/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/toastal">@toastal</a>)</li> <li>Added <code>setDragImage</code> function for <code>DataTransfer</code> (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1018125150" data-permission-text="Title is private" data-url="https://github.com/purescript-web/purescript-web-html/issues/65" data-hovercard-type="pull_request" data-hovercard-url="/purescript-web/purescript-web-html/pull/65/hovercard" href="https://github.com/purescript-web/purescript-web-html/pull/65">#65</a> by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ajarista/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ajarista">@ajarista</a>)</li> </ul> <p>Bugfixes:</p> <ul> <li>Removed duplicated <code>cells</code> export from the FFI in HTMLTableRowElement.js (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="902723506" data-permission-text="Title is private" data-url="https://github.com/purescript-web/purescript-web-html/issues/58" data-hovercard-type="issue" data-hovercard-url="/purescript-web/purescript-web-html/issues/58/hovercard" href="https://github.com/purescript-web/purescript-web-html/issues/58">#58</a> by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/thomashoneyman/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/thomashoneyman">@thomashoneyman</a>)</li> </ul> thomashoneyman tag:github.com,2008:Repository/132890520/v3.1.0 2021-05-06T17:10:08Z v3.1.0 <p>New features:</p> <ul> <li>Exported <code>fromHTMLMediaElement</code>, <code>stepUp</code>, and <code>stepDown</code> (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="876767513" data-permission-text="Title is private" data-url="https://github.com/purescript-web/purescript-web-html/issues/57" data-hovercard-type="pull_request" data-hovercard-url="/purescript-web/purescript-web-html/pull/57/hovercard" href="https://github.com/purescript-web/purescript-web-html/pull/57">#57</a> by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/JordanMartinez/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/JordanMartinez">@JordanMartinez</a>)</li> </ul> <p>Other improvements:</p> <ul> <li>Fixed warnings found by v0.14.1 PS release (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="876767513" data-permission-text="Title is private" data-url="https://github.com/purescript-web/purescript-web-html/issues/57" data-hovercard-type="pull_request" data-hovercard-url="/purescript-web/purescript-web-html/pull/57/hovercard" href="https://github.com/purescript-web/purescript-web-html/pull/57">#57</a> by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/JordanMartinez/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/JordanMartinez">@JordanMartinez</a>)</li> </ul> thomashoneyman tag:github.com,2008:Repository/132890520/v3.0.1 2021-03-13T19:53:34Z v3.0.1 <p>New features:</p> <ul> <li>Added <code>fromEventTarget</code> function for <code>Window</code> (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="826645408" data-permission-text="Title is private" data-url="https://github.com/purescript-web/purescript-web-html/issues/53" data-hovercard-type="pull_request" data-hovercard-url="/purescript-web/purescript-web-html/pull/53/hovercard" href="https://github.com/purescript-web/purescript-web-html/pull/53">#53</a> by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/thomashoneyman/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/thomashoneyman">@thomashoneyman</a>)</li> </ul> thomashoneyman tag:github.com,2008:Repository/132890520/v3.0.0 2021-02-26T21:10:24Z v3.0.0 <p>Breaking changes:</p> <ul> <li>Added support for PureScript 0.14 and dropped support for all previous versions (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="761609313" data-permission-text="Title is private" data-url="https://github.com/purescript-web/purescript-web-html/issues/45" data-hovercard-type="pull_request" data-hovercard-url="/purescript-web/purescript-web-html/pull/45/hovercard" href="https://github.com/purescript-web/purescript-web-html/pull/45">#45</a>)</li> <li>Removed unnecessary <code>Unit</code> argument in creation functions for <code>HTMLImageElement</code> and <code>HTMLAudioElement</code> (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="763257909" data-permission-text="Title is private" data-url="https://github.com/purescript-web/purescript-web-html/issues/46" data-hovercard-type="pull_request" data-hovercard-url="/purescript-web/purescript-web-html/pull/46/hovercard" href="https://github.com/purescript-web/purescript-web-html/pull/46">#46</a>)</li> <li>Fixed return type of <code>scrollX</code> and <code>scrollY</code> to be <code>Effect Number</code>, as these can return subpixel values (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="486642346" data-permission-text="Title is private" data-url="https://github.com/purescript-web/purescript-web-html/issues/17" data-hovercard-type="pull_request" data-hovercard-url="/purescript-web/purescript-web-html/pull/17/hovercard" href="https://github.com/purescript-web/purescript-web-html/pull/17">#17</a>)</li> <li>Removed <code>Newtype</code> instances for types with hidden constructors (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="746958632" data-permission-text="Title is private" data-url="https://github.com/purescript-web/purescript-web-html/issues/39" data-hovercard-type="pull_request" data-hovercard-url="/purescript-web/purescript-web-html/pull/39/hovercard" href="https://github.com/purescript-web/purescript-web-html/pull/39">#39</a>)</li> <li>Changed <code>HTMLInputElement.accept</code> attribute type to <code>String</code> (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="771349123" data-permission-text="Title is private" data-url="https://github.com/purescript-web/purescript-web-html/issues/47" data-hovercard-type="pull_request" data-hovercard-url="/purescript-web/purescript-web-html/pull/47/hovercard" href="https://github.com/purescript-web/purescript-web-html/pull/47">#47</a>)</li> </ul> <p>New features:</p> <ul> <li>Added <code>HTMLHyperlinkElementUtils</code> module (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="759685459" data-permission-text="Title is private" data-url="https://github.com/purescript-web/purescript-web-html/issues/44" data-hovercard-type="pull_request" data-hovercard-url="/purescript-web/purescript-web-html/pull/44/hovercard" href="https://github.com/purescript-web/purescript-web-html/pull/44">#44</a>)</li> <li>Added <code>create</code> and <code>create'</code> functions for <code>Audio</code> (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="642517893" data-permission-text="Title is private" data-url="https://github.com/purescript-web/purescript-web-html/issues/32" data-hovercard-type="pull_request" data-hovercard-url="/purescript-web/purescript-web-html/pull/32/hovercard" href="https://github.com/purescript-web/purescript-web-html/pull/32">#32</a>)</li> <li>Added missing attributes for <code>HTMLImage</code>, including <code>srcset</code>, <code>currentSrc</code>, <code>sizes</code>, <code>referrerPolicy</code>, <code>decoding</code>, <code>loading</code> (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="754045883" data-permission-text="Title is private" data-url="https://github.com/purescript-web/purescript-web-html/issues/40" data-hovercard-type="pull_request" data-hovercard-url="/purescript-web/purescript-web-html/pull/40/hovercard" href="https://github.com/purescript-web/purescript-web-html/pull/40">#40</a>)</li> <li>Added common <code>PropName</code>, <code>AttrName</code>, and <code>ClassName</code> which can be reused across libraries representing properties, attributes, and CSS classes (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="623686567" data-permission-text="Title is private" data-url="https://github.com/purescript-web/purescript-web-html/issues/30" data-hovercard-type="pull_request" data-hovercard-url="/purescript-web/purescript-web-html/pull/30/hovercard" href="https://github.com/purescript-web/purescript-web-html/pull/30">#30</a>)</li> </ul> <p>Bugfixes:</p> <p>Other improvements:</p> <ul> <li>Migrated CI to GitHub Actions and updated installation instructions to use Spago (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="758018931" data-permission-text="Title is private" data-url="https://github.com/purescript-web/purescript-web-html/issues/41" data-hovercard-type="pull_request" data-hovercard-url="/purescript-web/purescript-web-html/pull/41/hovercard" href="https://github.com/purescript-web/purescript-web-html/pull/41">#41</a>)</li> <li>Removed primes from foreign modules exports in preparation for PureScript 0.15 (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="580747229" data-permission-text="Title is private" data-url="https://github.com/purescript-web/purescript-web-html/issues/24" data-hovercard-type="pull_request" data-hovercard-url="/purescript-web/purescript-web-html/pull/24/hovercard" href="https://github.com/purescript-web/purescript-web-html/pull/24">#24</a>)</li> <li>Removed <code>return {}</code> from FFI implementations for a small performance improvement (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="658555039" data-permission-text="Title is private" data-url="https://github.com/purescript-web/purescript-web-html/issues/35" data-hovercard-type="pull_request" data-hovercard-url="/purescript-web/purescript-web-html/pull/35/hovercard" href="https://github.com/purescript-web/purescript-web-html/pull/35">#35</a>)</li> <li>Removed unused explicit exports (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="746958632" data-permission-text="Title is private" data-url="https://github.com/purescript-web/purescript-web-html/issues/39" data-hovercard-type="pull_request" data-hovercard-url="/purescript-web/purescript-web-html/pull/39/hovercard" href="https://github.com/purescript-web/purescript-web-html/pull/39">#39</a>)</li> <li>Updated HTML spec link (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="647718986" data-permission-text="Title is private" data-url="https://github.com/purescript-web/purescript-web-html/issues/34" data-hovercard-type="pull_request" data-hovercard-url="/purescript-web/purescript-web-html/pull/34/hovercard" href="https://github.com/purescript-web/purescript-web-html/pull/34">#34</a>)</li> <li>Added a CHANGELOG.md file and new pull request template (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="783863264" data-permission-text="Title is private" data-url="https://github.com/purescript-web/purescript-web-html/issues/48" data-hovercard-type="pull_request" data-hovercard-url="/purescript-web/purescript-web-html/pull/48/hovercard" href="https://github.com/purescript-web/purescript-web-html/pull/48">#48</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="785996105" data-permission-text="Title is private" data-url="https://github.com/purescript-web/purescript-web-html/issues/49" data-hovercard-type="pull_request" data-hovercard-url="/purescript-web/purescript-web-html/pull/49/hovercard" href="https://github.com/purescript-web/purescript-web-html/pull/49">#49</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="789524615" data-permission-text="Title is private" data-url="https://github.com/purescript-web/purescript-web-html/issues/50" data-hovercard-type="pull_request" data-hovercard-url="/purescript-web/purescript-web-html/pull/50/hovercard" href="https://github.com/purescript-web/purescript-web-html/pull/50">#50</a>)</li> </ul> thomashoneyman tag:github.com,2008:Repository/132890520/v2.3.0 2019-09-15T17:18:18Z v2.3.0 <p>Added <code>head</code> for <code>HTMLDocument</code> (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/elliotdavies/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/elliotdavies">@elliotdavies</a>)</p> garyb tag:github.com,2008:Repository/132890520/v2.2.2 2019-08-18T13:54:20Z v2.2.2 <p>Raised upper bound for <code>purescript-web-dom</code></p> garyb