As some have pointed, the browser interpretation of an empty element can vary. If you would like to ignore invisible elements such as spaces and line breaks and make the implementation more consistent you can create a function (or just use the code inside of it).
Last edited by The Highfather on Sat Aug 17, 2024 9:33 pm; edited 1 time in total
Last edited by The Highfather on Sat Aug 17, 2024 9:33 pm; edited 1 time in total
Attachments