709 Commits

Author SHA1 Message Date
carson
c81dce11bb Prep for 0.4.1 release 2020-11-23 08:31:00 -07:00
carson
7d592b80fe merge event properties directly
Standard DOM events do not have a detail property, but have properties directly on the event object (unlike `CustomEvent`).

See https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/detail

With this change we properly pass through event properties to the given htmx event.  In particular, the `progress` event now includes enough information for handling a progress bar.

Addresses https://github.com/bigskysoftware/htmx/issues/240
2020-11-23 07:45:33 -07:00
carson
13366ac089 fix https://github.com/bigskysoftware/htmx/issues/239
use title node innerHTML if possible so that HTML escape sequences are respected.
2020-11-18 17:23:52 -07:00
carson
81c78109a3 bump version 2020-11-18 17:22:52 -07:00
1cg
12dee5aa5a
Merge pull request #235 from bigskysoftware/bencroker-patch-1
Added docs for hx-vals and added security consideration
2020-11-16 21:27:00 -07:00
carson
1f028b14da Merge remote-tracking branch 'origin/master' 2020-11-16 18:29:48 -07:00
carson
4e7935b7ab release prep v0.4.0 2020-11-16 18:25:32 -07:00
carson
a9fb276f21 Merge branch 'master' into dev 2020-11-16 18:15:19 -07:00
carson
ec63d88eeb prep 0.4 release 2020-11-16 06:36:35 -07:00
Ben Croker
469ca86438
Create hx-vals.md 2020-11-16 12:55:35 +01:00
Ben Croker
1d42f1ddeb
Fixed link 2020-11-16 12:48:20 +01:00
Ben Croker
dad856dca0
Added Security Considerations 2020-11-16 12:40:30 +01:00
Ben Croker
bbe53d94de
Added hx-vals to docs 2020-11-16 12:27:42 +01:00
Ben Croker
2301b827f2
Use internal parseJSON function 2020-11-16 10:45:21 +01:00
Ben Croker
72d0ab850b
Use internal parseJSON function 2020-11-16 10:38:39 +01:00
Ben Croker
6208b58aba
Fix typo 2020-11-16 10:35:13 +01:00
1cg
fa1db3b290
Merge pull request #225 from ChexWarrior/224-unlock-request-after-xhr-abort
End request lock when xmlHttpRequest is aborted

awesome, thank you!
2020-11-15 19:22:20 -07:00
Andrew Lehman
661f43f5cf Update title and test label 2020-11-15 21:11:10 -05:00
Andrew Lehman
cc13cf721c Add test to list of manual tests 2020-11-15 21:09:07 -05:00
Andrew Lehman
f9d0ccb3ed Add minimal test to ensure requests aren't locked 2020-11-15 21:08:31 -05:00
carson
234ba981d9 remove last non-test eval 2020-11-15 19:04:19 -07:00
carson
d464b91d1e Add braces test 2020-11-15 17:56:23 -07:00
carson
5acd554a5c Two-fer:
* Implement `hx-vals` which is a JSON-only (and therefore safer) version of `hx-vars`
* Port all internal evals to use `Function` instead

May fix https://github.com/bigskysoftware/htmx/issues/213
2020-11-15 17:54:54 -07:00
carson
2209c4bf6f switch semantics: hx-vars overrides any input 2020-11-15 06:23:04 -07:00
1cg
90487505be
Merge pull request #232 from bigskysoftware/bencroker-patch-1
Allow expression vars to override raw parameters
2020-11-15 06:21:37 -07:00
carson
0f72543171 Update title if a title tag is found in the response content
fixes https://github.com/bigskysoftware/htmx/issues/231
2020-11-15 06:04:31 -07:00
carson
b774bf108a Merge remote-tracking branch 'origin/dev' into dev 2020-11-15 05:43:52 -07:00
carson
67e6fc89e1 Support HX-Redirect and HX-Refresh response headers
fixes https://github.com/bigskysoftware/htmx/issues/230
2020-11-15 05:43:44 -07:00
Ben Croker
f2941b7a4b
Allow expression vars to override raw parameters 2020-11-11 19:19:13 +01:00
1cg
e0b5d3d432
Merge pull request #217 from benpate/pullrequest-modal-documentation
Website: demo modal dialogs using UIKit
2020-11-11 10:06:02 -07:00
1cg
c334768865
Merge branch 'dev' into pullrequest-modal-documentation 2020-11-11 10:05:46 -07:00
1cg
4e41dc47d2
Merge pull request #218 from benpate/pullrequest-modal-bootstrap
Website: demo modal dialogs using Bootstrap
2020-11-11 10:04:46 -07:00
carson
e0b5b52979 handle html parsing when script tag starts content
fixes https://github.com/bigskysoftware/htmx/issues/228
2020-11-11 10:04:01 -07:00
carson
71a9b48dd4 fix example code
remove unused param
2020-11-11 09:59:42 -07:00
1cg
90bc460837
Merge pull request #229 from bigskysoftware/bencroker-patch-1
Added test for script nodes
2020-11-10 09:52:16 -07:00
Ben Croker
28d47e91d5
Added test child script nodes evaluate when first child 2020-11-09 10:49:01 +01:00
Andrew Lehman
f706e079cc End request lock when xmlHttpRequest is aborted 2020-11-06 16:06:00 -05:00
carson
3e8c47df05 fix example code
fixes https://github.com/bigskysoftware/htmx/issues/216
2020-11-05 11:30:14 -07:00
carson
a599286d5c Only process anchors and forms if there is an hx-boost in play 2020-11-05 08:56:51 -07:00
carson
f7617a4653 do not fire requests when element is no longer in DOM
fixes https://github.com/bigskysoftware/htmx/issues/222
2020-11-05 08:39:33 -07:00
1cg
a719c86511
Merge pull request #221 from adamchainz/docs_cleanup
Some docs cleanup
2020-11-02 18:40:25 -07:00
Adam Johnson
d1ff69d883 Some docs cleanup
Fix some typos, and the location of the *event-header* extension as linked to in the latest release notes.
2020-11-02 23:08:05 +00:00
carson
a6b9d7b083 improve language 2020-10-29 10:06:40 -06:00
carson
5f8438c13e improve language 2020-10-29 10:00:32 -06:00
carson
ee0a9ff06d fix typo 2020-10-29 09:57:52 -06:00
carson
c9341de0ac include docs on kebab-case events 2020-10-29 09:52:07 -06:00
carson
6116593d75 include image 2020-10-29 08:53:39 -06:00
carson
b743c28d3a typo 2020-10-29 08:51:46 -06:00
carson
7583b818c8 finish essay 2020-10-29 08:50:12 -06:00
carson
6b54a137b7 finish essay 2020-10-29 08:46:04 -06:00