Skip to content

Why must text nodes be created explicitly? #1009

Closed
@ghost

Description

Hi there,

Thank you for all your thoughtful work and sharing it with the world. I'm inspired by the discipline and thoughtfulness put into your projects like superfine and hyperapp.

Having used some other hyperscript implementations with various degrees of convenience, I wonder why text nodes must be created explicitly using superfine. Couldn't it be inferred with a simple typeof check?

One reason I ask is I'd like to use something like developit/htm to generate hyperscript from tagged template literals. While hyperscript has its benefits, I find it more convenient and natural to work with html using strings in some cases, e.g. integrating with a third-party design system.

Thanks for the handy library and your insight!

Metadata

Metadata

Assignees

No one assigned

    Labels

    metaNews and communication

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions