Bug 60543
Summary: | Generated content inside a link should be clickable (and focusable) | ||
---|---|---|---|
Product: | WebKit | Reporter: | Masataka Yakura <myakura.web> |
Component: | WebCore Misc. | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | ap, jchaffraix, rniwa |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Mac | ||
OS: | OS X 10.6 | ||
URL: | http://software.hixie.ch/utilities/js/live-dom-viewer/saved/979 |
Masataka Yakura
Suppose there's an anchor which has no text content but has a generated content applied by CSS, like the following fragment:
<style>
a:before { content: "foobar" }
</style>
<a href="http://example.com/"></a>
Even though the <a> doesn't have any textContent at all, this will show a link with an anchor text "foobar". Clicking it should take us to http://example.com/
However, sometime around early Chrome 12 build, Chrome (and WebKit Nightly) starts not activating the link when clicking nor being focusable by the tab key.
Since it works in Gecko, Presto, Trident, and old WebKit, it should keep working.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Julien Chaffraix
Bug already covered by 58422 (which is a P1).
*** This bug has been marked as a duplicate of bug 58422 ***