Bug 75839 - simple close tag is not supported for <a> and <object> tag.
Summary: simple close tag is not supported for <a> and <object> tag.
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 420+
Hardware: All All
: P1 Major
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-09 03:41 PST by Wang Changzhi
Modified: 2012-01-09 10:12 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wang Changzhi 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>.
Comment 1 Alexey Proskuryakov 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).