Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support encapsulating oob swap elements in templates in response #2120

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

Telroshan
Copy link
Collaborator

As discussed in the Discord, here's a template-based suggestion to work around the annoying scenario of oob-swapping the lone tr or td to, which by default won't work if there are any elements before it in the response, because of the way the DOM parser works.

Updated the docs to mention that scenario and the way we would now recommend to address it.

@Telroshan Telroshan added the 2.0 label Dec 21, 2023
src/htmx.js Outdated Show resolved Hide resolved
@1cg 1cg merged commit b9da68d into bigskysoftware:v2.0v2.0 Dec 21, 2023
Renerick added a commit to Renerick/Htmx.Oob that referenced this pull request Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants