You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The main reason for that was that there's a bug/missing feature/undesired effect of nipper dropping the <template> element: #742
Another reason to switch was the fact that, while nipper is great, it didn't see any new release in 3 years, while lol_html seem to be well maintained.
However, that introduced a breaking change: lol_html handles things a bit differently: #742 (comment)
In a nutshell, if you're using <script /> (note the self-closing tag syntax) in your index.html that is processed by trunk, then this worked so far, but no longer will. Unfortunately, it doesn't "throw an error", but silently skips content. Even more unfortunately, we did use that syntax in our examples.
As that's a breaking change, main will become 0.20.0. If anyone has a good idea of improving this situation, let me know.
how to prepare?
You can prepare yourself, by verifying that you are not using a self-closing <script /> tag. That's all that is required.
This is especially important to remember for elements such as <script> or <ul> that do require a closing tag. In these cases, adding a trailing slash in the start tag does not close the element. Instead, the trailing slash is ignored, and the element is treated as open until an explicit closing tag is encountered or until the parser implicitly closes the element based on the HTML structure and parsing rules.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
On the main branch we replaced nipper with lol_html.
The main reason for that was that there's a bug/missing feature/undesired effect of nipper dropping the
<template>
element: #742Another reason to switch was the fact that, while nipper is great, it didn't see any new release in 3 years, while lol_html seem to be well maintained.
However, that introduced a breaking change: lol_html handles things a bit differently: #742 (comment)
In a nutshell, if you're using
<script />
(note the self-closing tag syntax) in yourindex.html
that is processed by trunk, then this worked so far, but no longer will. Unfortunately, it doesn't "throw an error", but silently skips content. Even more unfortunately, we did use that syntax in our examples.As that's a breaking change,
main
will become0.20.0
. If anyone has a good idea of improving this situation, let me know.how to prepare?
You can prepare yourself, by verifying that you are not using a self-closing
<script />
tag. That's all that is required.more information
See: https://developer.mozilla.org/en-US/docs/Glossary/Void_element#self-closing_tags:
Beta Was this translation helpful? Give feedback.
All reactions