Close tags <a/> and <object/> like this will damage the whole html file. for example: <!DOCTYPE html> <html> <body> <object width="400" height="300" data="hello.swf" type="application/x-shockwave-flash"/> <div id="result"> These data should be visible! </div> </body> </html> The text in <div> should be visible. But instead the <div> is treated as alt text of <object>.
Self-closing tags only work in XML. They have absolutely no effect in HTML (in any browser, not just WebKit-based ones).