Skip to content

js: minimise arguments passed to querySelector/querySelectorAll #785

@jvoisin

Description

@jvoisin

querySelector/querySelectorAll) take a css selector as parameter, and minify already has code to minify those, so it would be nice to wire it there.

This:

e.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not( [tabindex="-1"] )')

could be minified as this:

e.querySelectorAll('button,[href],input,select,textarea,[tabindex]:not([tabindex="-1"])')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions