-
Notifications
You must be signed in to change notification settings - Fork 178
Open
Labels
debuggingduplicateThis issue or pull request already existsThis issue or pull request already existsenhancementNew feature or requestNew feature or requestproposal
Description
Consider this sample code, which accidentally omits a closing tag.
import htm from 'https://unpkg.com/htm?module'
const h = (type, props, ...children) => ({type, props, children});
const html = htm.bind(h)
console.log(JSON.stringify(html`<h1>Hello, world!`));In this case, the user intended to include a closing tag </h1>, and so the user's desired logged result is {"type":"h1","props":null,"children":["Hello, world!"]}
Actual: ["h1","Hello, world!"] The element name is incorrectly handled as a text node.
Expected: Throw an exception.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
debuggingduplicateThis issue or pull request already existsThis issue or pull request already existsenhancementNew feature or requestNew feature or requestproposal