r/webdev • • Jun 01 '21 • Heart Eyes 1

Resource That feeling when you first discovered `document.designMode`

8.3k Upvotes

260 comments sorted by

View all comments

Show parent comments

1

u/BHSPitMonkey Jun 02 '21

It also sucks because your third (or fourth, or...) states happen to all be truthy.

0

u/[deleted] Jun 02 '21

Yes, though i think in a case where either a boolean or specific values of another type are accepted, we can expect the API won't use truthiness regardless of input type as a criterion