Support for comment nodes
See original GitHub issueI’m interested in using snabbdom server-side, but as far as I can tell it lacks the ability to handle comments. This is useful for (among other things) adding browser-conditional comments:
<!--[if lte IE 8]><script src="..."></script><!endif-->
Other than emitting a <div>
with innerHTML
set for a comment, how can I add comments?
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Comment - Web APIs - MDN Web Docs - Mozilla
The Comment interface represents textual notations within markup; although it is generally not visually shown, such comments are available ...
Read more >CommentNode object JavaScript - Dottoro Web Reference
CommentNode objects make it possible to insert comments into the document as nodes (appendChild, insertBefore). Syntax: Methods that return the object: ...
Read more >Is there a DOM API for querying comment nodes?
Is there a DOM API for querying comment nodes? · Perhapes this helps: developer.mozilla.org/en-US/docs/DOM/Node.nodeType But I haven't tested it.
Read more >Support HTML comment nodes · Issue #8822 · ckeditor/ckeditor5
We got a use case where CKEditor 4 integrators used HTML comments to include some metadata, like page number etc. If you'd like...
Read more >Comment node - Feature Requests - n8n community
So, my feature request would be: a Comment node, inspired by iOS Shortcuts comments, that can be used to add comments to the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This was closed by #229.
I have same issue also. In any case we must provide support for comment nodes in html because the DOM supports it too (see document.createComment()).