Skip to content

Is false still allowed in allowedClasses attribute? #621

Answered by boutell
KevinSJ asked this question in Q&A
Discussion options

You must be logged in to vote

It looks like this feature was intentionally implemented, as the comment indicates, but never documented or covered by unit tests, with the unfortunate result you are seeing. That occurred around version 2.4.0.

A PR to add back support for this feature and add a unit test for it to prevent regressions would be welcome. This would involve checking that classes is not explicitly false before calling forEach on it.

I think it should be permitted only if the value is explicitly false.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@KevinSJ
Comment options

Answer selected by boutell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants