HTML_CodeSniffer icon indicating copy to clipboard operation
HTML_CodeSniffer copied to clipboard

Deal with refNode being set to null in 2_5_3

Open stefanruijsenaars opened this issue 5 years ago • 2 comments

The label might refer to a non-existing element - this currently blows up the checker as refNode will be set to null.

stefanruijsenaars avatar Jan 23 '20 22:01 stefanruijsenaars

Hi @stefanruijsenaars, are you able to provide some example code where this fails?

ironikart avatar Jan 27 '20 23:01 ironikart

<label for="nonexistent">, where #nonexistent doesn't exist?

stefanruijsenaars avatar Sep 05 '20 19:09 stefanruijsenaars