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

Delete empty <script></script> tags after transformation #10

@dmorejon

Description

@dmorejon

After transforming scripts, you could end up with an HTML file that has one or more instances of <script></script>.
For example, since description("Test description"); calls are removed, if you had HTML that looked like:
<script>description("Test description");</script> the transformed HTML would be left with
<script></script>.

It would be nice (and likely not very difficult) to remove these empty tags in injectScripts.js.
Although, some subtleties include: make sure that the scriptCount is incremented and the scripts array is handled correctly after deletion, that traversal continues correctly after deletion, and that the <script> tag is truly empty including no attributes within the tag.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions