update sha

This commit is contained in:
Carson Gross 2025-06-19 10:24:57 -06:00
parent 1d01b94b90
commit e38d6a7147
2 changed files with 6 additions and 4 deletions

View File

@ -1140,8 +1140,8 @@ You can see all available extensions on the [Extensions](/extensions) page.
The fastest way to install htmx extensions created by others is to load them via a CDN. Remember to always include the core htmx library before the extensions and [enable the extension](#enabling-extensions). For example, if you would like to use the [response-targets](/extensions/response-targets) extension, you can add this to your head tag:
```HTML
<head>
<script src="https://cdn.jsdelivr.net/npm/htmx.org@2.0.4/dist/htmx.min.js" integrity="sha384-HGfztofotfshcF7+8n44JQL2oJmowVChPTg48S+jvZoztPfvwD79OC/LTtG6dMp+" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/htmx-ext-response-targets@2.0.2" integrity="sha384-T41oglUPvXLGBVyRdZsVRxNWnOOqCynaPubjUVjxhsjFTKrFJGEMm3/0KGmNQ+Pg" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/htmx.org@2.0.4/dist/htmx.min.js" integrity="sha384-rgDUNhY6z4THDY2kCpmYI4f0WFGAFfN30Byo3z/PjHF0/OxDN/EJ28TV8sYZ2W74" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/htmx-ext-response-targets@2.0.2" integrity="sha384-UMuM7P2CPg9i2/dfvBlAeqjXITmEWe9k17Mp9X07Z4jXPN21Ychng569t+sUL8oa" crossorigin="anonymous"></script>
</head>
<body hx-ext="extension-name">
...

View File

@ -350,7 +350,8 @@
chai.Assertion.addProperty('displayed', function() {
var el = flag(this, 'object'),
actual = el.getRootNode({ composed: true }) === document ? window.getComputedStyle(el).display : el.style.display
isAttached = el.getRootNode ? el.getRootNode({ composed: true }) === document : document.body.contains(el),
actual = isAttached ? window.getComputedStyle(el).display : el.style.display
this.assert(
actual !== 'none'
@ -362,7 +363,8 @@
chai.Assertion.addProperty('visible', function() {
var el = flag(this, 'object'),
actual = document.body.contains(el) ? window.getComputedStyle(el).visibility : el.style.visibility
isAttached = el.getRootNode ? el.getRootNode({ composed: true }) === document : document.body.contains(el),
actual = isAttached ? window.getComputedStyle(el).visibility : el.style.visibility
this.assert(
actual !== 'hidden' && actual !== 'collapse'