Skip to content
This repository has been archived by the owner on Mar 10, 2022. It is now read-only.

Posthtml Parser breaks if '<' used within script #8

Open
dmorejon opened this issue Aug 14, 2020 · 0 comments
Open

Posthtml Parser breaks if '<' used within script #8

dmorejon opened this issue Aug 14, 2020 · 0 comments

Comments

@dmorejon
Copy link
Contributor

For example, in the code for (let i=0; i < 12; i++ {, Posthtml's parser will break this string up into strings, then putting them into separate elements in the tree.content array.
The hacky solution for now is just to concatenate the tree.content array before doing any other transformation on that node.

There is a regression test in testInjectScripts.js for this on the offending test file.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant