Fixed typo (#1238)

Fixed "for simplicities sake" to "For simplicity’s sake".
Fixed "The div has the same id in the original an in the new content" to "The div has the same id in the original and in the new content".
This commit is contained in:
Ahmed Lemine 2023-02-22 23:30:47 +04:00 committed by GitHub
parent 91573d1c45
commit a7affc95d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -485,7 +485,7 @@ Imagine this content is replaced by htmx via an ajax request with this new conte
Note two things:
* The div has the *same* id in the original an in the new content
* The div has the *same* id in the original and in the new content
* The `red` class has been added to the new content
Given this situation, we can write a CSS transition from the old state to the new state:
@ -671,7 +671,7 @@ a wider audience to use your sites functionality.
Other htmx patterns can be adapted to achieve progressive enhancement as well, but they will require more thought.
Consider the [active search](/examples/active-search) example. As it is written, it will not degrade gracefully:
someone who does not have javascript enabled will not be able to use this feature. This is done for simplicities sake,
someone who does not have javascript enabled will not be able to use this feature. This is done for simplicitys sake,
to keep the example as brief as possible.
However, you could wrap the htmx-enhanced input in a form element: