drgullin / icheck

Highly customizable checkboxes and radio buttons (jQuery & Zepto)
http://fronteed.com/iCheck
7.39k stars 1.63k forks source link

DIV inside LABEL #352

Open puggan opened 7 years ago

puggan commented 7 years ago

In the example in the readme, the javascript is adding a DIV-tag inside of a LABEL-tag, thats may work in most browsers, but is by definition invalid HTML.

http://stackoverflow.com/questions/18609554/is-div-inside-label-block-correct

I think the use of span-tags would make it posible to get the same result, but with valid HTML