Bugzilla – Bug 456
<div/> gives an HTML4-only error
Last modified: 2015-04-01 09:20:02 CEST
Try <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <title></title><div/></div> You get two errors: Error: The /> syntax on void elements is not allowed. (This is an HTML4-only error.) Error: Self-closing syntax (/>) used on a non-void HTML element. Ignoring the slash and treating as a start tag.