Bug 75839

Summary: simple close tag is not supported for <a> and <object> tag.
Product: WebKit Reporter: Wang Changzhi <changzhi.wang>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Major CC: ap
Priority: P1    
Version: 420+   
Hardware: All   
OS: All   

Wang Changzhi
Reported 2012-01-09 03:41:57 PST
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>.
Attachments
Alexey Proskuryakov
Comment 1 2012-01-09 10:12:12 PST
Self-closing tags only work in XML. They have absolutely no effect in HTML (in any browser, not just WebKit-based ones).
Note You need to log in before you can comment on or make changes to this bug.