How are unclosed tags represented in JsonML? How are unclosed tags represented in JsonML? json json

How are unclosed tags represented in JsonML?


unclosed tags are supposed to be self closing tags so, they don't have any children


@shyam is correct, these are all self-closing tags. Your specific examples would look like:

["link", {"rel":"stylesheet", "type":"text/css", "href":"theme.css"}]["input", {"type":"text", "name":"fname"}]"Hello World!", ["br"]["col", {"span":"2", "style":"background-color:red"}]

The only odd one is your <br> example which lacks a root element making it invalid JSON. The workaround is to create a document fragment which is represented in JsonML as an element with a tagName of "":

["",    "Hello World!", ["br"]]