v2.0.5
Breaking Changes📦 htmxView on GitHub →
⚠ 4 breaking✨ 6 features🐛 10 fixes🔧 6 symbols
Summary
The release adds new hx-drag and historyRestoreAsHxRequest features, expands documentation and examples, removes legacy IE support, and includes numerous bug fixes and documentation improvements.
⚠️ Breaking Changes
- Removed legacy Internet Explorer support – pages will no longer work in IE; upgrade to a modern browser or provide a polyfill.
- Title text is now written using innerText instead of innerHTML – if your code relied on HTML markup in the title, update it to set the desired markup after the title is set or use a custom script.
- Internal usage of the deprecated String.substr method was removed – replace any custom code that calls substr with slice or substring.
- Submit buttons with formmethod=dialog now perform a no‑op instead of submitting – adjust forms that relied on the previous behavior.
Migration Steps
- Test your site in a modern browser after IE support removal; add polyfills if IE compatibility is required.
- If you set document.title with HTML markup, change the code to set title.textContent (or innerText) and apply any needed markup separately.
- Search your codebase for .substr calls and replace them with .slice or .substring.
- Review forms that use formmethod=dialog; ensure they no longer expect a submit action.
✨ New Features
- Added hx-drag extension proposal for dragstart and drop triggered htmx requests.
- Introduced historyRestoreAsHxRequest configuration to optionally suppress the hx-request header on history‑restore requests.
- Added a 404 page example and several new server examples (http4k, FreePascal with Pas2JS).
- Added "less htmx" link and dynamic‑url entry to the community extensions list.
- Extended documentation with new attribute pages, essay descriptions, and header/api descriptions.
- Created SECURITY.md file for security guidelines.
🐛 Bug Fixes
- Fixed escaped quotes in page titles.
- Corrected h2 color styling.
- Repaired broken documentation links on the quirks page and other docs.
- Fixed typo in QUIRKS.md and other documentation files.
- Resolved error in quirks documentation for htmx config.
- Fixed JSDoc of getRespCodeTarget.
- Fixed broken link in SSE extension docs.
- Fixed event availability in hx-vals/hx-vars when hx-trigger includes a delay.
- Handled removal of request lock on errors.
- Proxy window.location for testing and extension overrides.
🔧 Affected Symbols
writeTitlegetRespCodeTargethistoryRestoreAsHxRequestrequestLockwindow.locationsubstr