HTML_CodeSniffer
HTML_CodeSniffer copied to clipboard
Deal with refNode being set to null in 2_5_3
The label might refer to a non-existing element - this currently blows up the checker as refNode will be set to null.
Hi @stefanruijsenaars, are you able to provide some example code where this fails?
<label for="nonexistent">
, where #nonexistent doesn't exist?