streetpc/jquery-infieldlabels — comment on commit c627a7c9bcc194fed5eff511c54f75ca9e8e751d
File: src/jquery.infieldlabel.js line 140
By streetpc:

Tradeoff: a `switch` or a set of `if ===` would be faster but less concise/readable.

I put `toLowerCase()` (and the regex trailing `?`) because I'm not sure that all browser normalize this property if the attribute has uppercase or is empty. Maybe superfluous.