Skip to content
This repository was archived by the owner on Apr 14, 2019. It is now read-only.
This repository was archived by the owner on Apr 14, 2019. It is now read-only.

suggest check whitspace in attributes #37

Description

@kryde

The HTML 4 spec under "6.2 SGML basic types" says

User agents may ignore leading and trailing white space in CDATA
attribute values (e.g., "   myval   " may be interpreted as
"myval"). Authors should not declare attribute values with leading
or trailing white space.

As an idea for a feature, HTML::Lint might report attribute values with leading or trailing whitespace, so that for example href=" foo.html " is reported as something like: HTML4 says don't use leading or trailing whitespace (even if it often works).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions