Bug 75839
| Summary: | simple close tag is not supported for <a> and <object> tag. | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Wang Changzhi <changzhi.wang> |
| Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED INVALID | ||
| Severity: | Major | CC: | ap |
| Priority: | P1 | ||
| Version: | 420+ | ||
| Hardware: | All | ||
| OS: | All | ||
Wang Changzhi
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
Self-closing tags only work in XML. They have absolutely no effect in HTML (in any browser, not just WebKit-based ones).