diff options
author | Alexander Petros <apetros15@gmail.com> | 2024-11-13 19:24:46 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-13 17:24:46 -0700 |
commit | 82eb2a635a3854453cee8d90272c1de60d992d1c (patch) | |
tree | e0b43c97bcf32d191b476775fe05c41e63bcb784 | |
parent | ccbc101dd80edb8a3e1ea5ddb4070dd3289e1b3c (diff) | |
download | htmx-82eb2a635a3854453cee8d90272c1de60d992d1c.tar.gz htmx-82eb2a635a3854453cee8d90272c1de60d992d1c.zip |
Fix name on essay (#3019)
Fix name on essay
-rw-r--r-- | www/content/essays/webcomponents-work-great.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/www/content/essays/webcomponents-work-great.md b/www/content/essays/webcomponents-work-great.md index 343c121e..67978584 100644 --- a/www/content/essays/webcomponents-work-great.md +++ b/www/content/essays/webcomponents-work-great.md @@ -97,7 +97,7 @@ That will give us this table: <tr> <td>Sophia <td><edit-cell name="sophia-carousel" value="Yes"></edit-cell> - <td><edit-cell name="sophia-roller" value="No"></edit-cell> + <td><edit-cell name="sophia-roller" value="Yes"></edit-cell> </tr> </table> <button>Save</button> @@ -125,7 +125,7 @@ Let's remove all that redundancy with a web component! <tr> <td>Sophia <td><edit-cell name="sophia-carousel" value="Yes"></edit-cell> - <td><edit-cell name="sophia-roller" value="No"></edit-cell> + <td><edit-cell name="sophia-roller" value="Yes"></edit-cell> </tr> </table> <button>Save</button> @@ -158,11 +158,11 @@ But being able to work with both the [Shadow DOM](@/examples/web-components.md) ## Bringing Behavior Back to the HTML -A couple of years ago, W3C Contributor (and Web Component proponent, I think) Leah Verou wrote the following, in a blog post about ["The failed promise of Web Components"](https://lea.verou.me/blog/2020/09/the-failed-promise-of-web-components/): +A couple of years ago, W3C Contributor (and Web Component proponent, I think) Lea Verou wrote the following, in a blog post about ["The failed promise of Web Components"](https://lea.verou.me/blog/2020/09/the-failed-promise-of-web-components/): > the main problem is that HTML is not treated with the appropriate respect in the design of these components. They are not designed as closely as possible to standard HTML elements, but expect JS to be written for them to do anything. HTML is simply treated as a shorthand, or worse, as merely a marker to indicate where the element goes in the DOM, with all parameters passed in via JS. -Leah is identifying an issue that, from the perspective of 2020, would have seemed impossible to solve: the cutting-edge web developers targeted by Web Components were not writing HTML, they were writing JSX, usually with React (or Vue, or what have you). +Lea is identifying an issue that, from the perspective of 2020, would have seemed impossible to solve: the cutting-edge web developers targeted by Web Components were not writing HTML, they were writing JSX, usually with React (or Vue, or what have you). The idea that [behavior belongs in the HTML](https://unplannedobsolescence.com/blog/behavior-belongs-in-html/) was, in the zeitgeist, considered [a violation of separation of concerns](https://htmx.org/essays/locality-of-behaviour/); disrespecting HTML was best practice. |