Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support transforming script tag bodies in .htm/.html files? #18

Open
platinumazure opened this issue Jun 11, 2015 · 0 comments
Open

Support transforming script tag bodies in .htm/.html files? #18

platinumazure opened this issue Jun 11, 2015 · 0 comments

Comments

@platinumazure
Copy link
Owner

Wondering if we should support transforming <script> tag bodies in .htm/.html files. Not important for now, certainly not going to look at this until after 1.0.

One possible approach:

  1. Add an HTML/XML parser;
  2. Have processFile detect HTML and switch to using that parser;
  3. Anything in tags matching XPath //script[type="text/javascript"] would be passed to the recast parse/transform/print flow.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant