question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for comment nodes

See original GitHub issue

I’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:closed
  • Created 7 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
paldepindcommented, Feb 8, 2017

This was closed by #229.

1reaction
katyocommented, Aug 10, 2016

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()).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found