Needs work
Project:
Drupal core
Version:
main
Component:
ajax system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
4 Nov 2025 at 08:48 UTC
Updated:
1 May 2026 at 14:33 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
fathershawnComment #4
fathershawnComment #5
fathershawnComment #6
fathershawnComment #7
fathershawnComment #8
fathershawnComment #9
catchGiven the overall timings this looks like something we should try to get into 12.0.0
Comment #10
nod_worked out the problems to get things working with that new branch. This is now behaving like our current ajax framework. Assets needs to be loaded before DOM replacement happens.
Comment #11
nod_Got an assist from @latent with the code: https://gist.github.com/MichaelWest22/7ca5b715b368ec1289352d4eeb310182
This moves the code to an htmx extension, and we might be able to use an extension to declare new swap styles to manage modals and messages.
Comment #13
fathershawnComment #14
fathershawnComment #15
fathershawnI'm going to update the HTMX object with changes for 4.x. I'm leaving the rebase for @nod_ as the javascript files are branching from an earlier version of those files and I don't want to try to interpret his work.
Comment #16
fathershawnReposting a question from Slack for wider discussion:
Comment #17
longwaveAdding to #3449808: [12.x] [meta] Requirements for tagging 12.0.0-beta1 after discussions in Slack where HTMX 4 should be stable shortly before we release Drupal 12.
Comment #18
fathershawnRebased the feature branch onto the current head of main. htmx-assets.js should be re-checked to verify that I preserved the refactor but brought in appropriately the bug fixes in that file since the feature branch was forked.
Refactored the
Htmxclass to account for the two new attribute modifiers:inheritedand:appendAI Note: I refactored the first htmx attribute building method and then tasked my JetBrains AI agent to repeat the pattern for the remaining methods.
Comment #19
fathershawnI can't get the yarn.lock to update without adding dev dependencies.
Comment #20
fathershawnThe backend tests now pass. JS tests are failing - I very likely missed something rebasing the JS on changes in
main.Comment #21
fathershawnAll tests passing - waiting for updated releases of htmx 4
Comment #22
catchOnce there's a beta or rc of htmx 4 we could update to that in core on the expectation we'll be able to update again to stable prior to our own stable release.
Comment #23
fathershawn@catch This MR is currently on 4.0.0-beta2. Michael has improvements coming in the next tag that include restoring
data-hx-equally supported ashx-so I'm waiting for the next tag and will update accordingly.Comment #24
fathershawnWe received an pre-release of beta3 from the HTMX team. I copy/pasted the code into this branch and returned our markup strategy to
data-hx-syntax. All tests still pass.The branch is conflicted with
main. I'm going to rebase and resolve and then mark this issue for an initial review.Comment #25
fathershawnComment #26
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #27
fathershawnI'll update this branch again when the new htmx release is tagged.