Skip to content
This repository has been archived by the owner on Dec 11, 2017. It is now read-only.

Add CSSLint rule to apply safecss_filter_attr() #60

Closed
westonruter opened this issue Aug 28, 2017 · 1 comment
Closed

Add CSSLint rule to apply safecss_filter_attr() #60

westonruter opened this issue Aug 28, 2017 · 1 comment

Comments

@westonruter
Copy link
Member

The safecss_filter_attr() function is used by KSES to filter HTML style attributes, removing any properties that are illegal. This should be applied to CSS and style attributes in HTML, so that any illegal properties are flagged as such.

It seems that HTMLHint is not currently applying CSSLint to style attributes, but if it did, then a kses rule added to CSSLint could then apply to both HTML and CSS.

@westonruter
Copy link
Member Author

Moved to Trac: https://core.trac.wordpress.org/ticket/41874

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

No branches or pull requests

1 participant