3 ms·
> Ignored means exactly that. HTML does not have xml-style self-closing tags at all. You are answering my complaint by repeating the fact that I complained abo
by captainmuon 5y ago
> Ignored means exactly that. HTML does not have xml-style self-closing tags at all.
You are answering my complaint by repeating the fact that I complained about? :-D
> The goal of the HTML5 parser effort was to create an interoperable and backwards compatible parsing algorithm. Adding self-closing tags to the langage would have tin counter to that goal and would definitely have broken existing code unnecessarily, even though it might have been convenient in some cases.
I'd wager that in pre-HTML5 code, the overwhelming amount of cases of <div /> were supposed to mean <div></div> and not <div>.... Why would you even put the slash there if you wanted an opening tag? HTML5 would have been a great opportunity to legalize the former behavior, and that would have broken less code. I distinctivly remember that the self-closing worked as expected even on non-void-tags in quirks mode (not XTML) in the mid 2000s, because at some point I had to fix them after new browser versions came out.