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

suggest check whitspace in attributes #37

Open
kryde opened this issue Mar 4, 2015 · 0 comments
Open

suggest check whitspace in attributes #37

kryde opened this issue Mar 4, 2015 · 0 comments

Comments

@kryde
Copy link

kryde commented Mar 4, 2015

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).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants