Bug 60543 - Generated content inside a link should be clickable (and focusable)
Summary: Generated content inside a link should be clickable (and focusable)
Status: RESOLVED DUPLICATE of bug 58422
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.6
: P2 Normal
Assignee: Nobody
URL: http://software.hixie.ch/utilities/js...
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-10 04:08 PDT by Masataka Yakura
Modified: 2011-05-23 18:09 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Masataka Yakura 2011-05-10 04:08:54 PDT
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.
Comment 1 Julien Chaffraix 2011-05-23 18:09:05 PDT
Bug already covered by 58422 (which is a P1).

*** This bug has been marked as a duplicate of bug 58422 ***