Merge remote-tracking branch 'origin/master'

This commit is contained in:
carson 2021-09-21 07:27:53 -06:00
commit 40606158fa
3 changed files with 4 additions and 4 deletions

View File

@ -96,7 +96,7 @@ at this point you can modify `/src/htmx.js` to add features, and then add tests
* `/test/ext` - extension tests
* `/test/manual` - manual tests that cannot be automated
htmx use the [mocha](https://mochajs.org/) testing framework, the [chai](https://www.chaijs.com/) assertion frame work,
htmx uses the [mocha](https://mochajs.org/) testing framework, the [chai](https://www.chaijs.com/) assertion frame work,
and [sinon](https://sinonjs.org/releases/v11.1.1/fake-xhr-and-server/) to mock out AJAX requests. They are all OK.
## haiku

View File

@ -62,7 +62,7 @@ data: <div>Content to swap into your HTML page.</div>
```
```html
<div hx-sse="connect:/server-url swap:eventName></div>
<div hx-sse="connect:/server-url swap:eventName"></div>
```
### Data Only Events
@ -74,7 +74,7 @@ data: <div>Content to swap into your HTML page.</div>
```
```html
<div hx-sse="connect:/server-url swap:message></div>
<div hx-sse="connect:/server-url swap:message"></div>
```
### Notes

View File

@ -121,7 +121,7 @@ Using this approach, the HTML doesn't need to change from the original setup at
Instead of modifying something on the front end, in your response to the `POST` to `/contacts` you would include some additional content:
```html
<tr hx-oob-swap="beforeend:#contacts-table">
<tr hx-swap-oob="beforeend:#contacts-table">
<td>Joe Smith</td>
<td>joe@smith.com</td>
</tr>