Skip to content

Improve documentation re: wrap-script-literals #736

@ghost

Description

Thanks for maintaining HTML Tidy!

The documentation for --wrap-script-literals says:

This option specifies if Tidy should line wrap string literals that appear in script attributes.

Tidy wraps long script string literals by inserting a backslash character before the line break.

(My emphasis.)

It is unclear what this documentation means by "script attributes".

I am familiar with href attributes and src attributes and style attributes and many other attributes, but I do not recall encountering a script attribute. Nor do lists of HTML attributes such as this or this report the existence of such an attribute.

Is the documentation in fact referring to, e.g. event-handler attributes? If so, then it should use that term instead of "script attributes".

Alternatively, if (though this seems unlikely, due to the second sentence quoted above) the documentation is in fact referring to attributes on <script> elements, then, again, the documentation should use that term instead of "script attributes".

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