Closed jtlocsei closed 4 years ago
Also, in case it's relevant,
(exists? js/DOMParser)
=> true
Sorry, ignore the above, I missed the bit in the readme about how you need to map as-hiccup onto the parsed fragment.
a fragment is parsed, but it cannot be directly used with as-hiccup (or as-hickory), it must have those functions called on each element in the list instead.
Example:
Results in error:
Parse works OK, e.g.
And parse-fragment itself doesn't throw an error, it's only thrown when I call as-hiccup or as-hickory on the result of the parse.
Here are some more results in case they help debug: