Modernizr class assignment

Viewed 44

I'm new to Modernizr. This may seem like an incredibly OCD question, but I'm curious as to why Modernizr adds a preceding space when it assigns a class to my page's html tag when it is the only class assigned?

For instance when I inspect my page in a desktop context, my page's html tag looks like so:

<html dir="ltr" lang="en-AU" style="" class=" no-touchevents">

instead of:

<html dir="ltr" lang="en-AU" style="" class="no-touchevents">

Is there a rationale as to why Modernizr adds classes in this manner?

1 Answers
Related