[Webkit-unassigned] [Bug 9603] no means for styling a[onclick] links to look like a[href] links

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Fri Aug 11 07:51:04 PDT 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=9603


christopher.bentley at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |christopher.bentley at gmail.co
                   |                            |m




------- Comment #3 from christopher.bentley at gmail.com  2006-08-11 07:51 PDT -------
I don't agree that A elements with no HREF attribute should be styled as a
"link". It is my view that this <a>foo</a> contains no link, nor does <a
onclick="foo();"> and as such no impression that a link exists should be
created.

Neither of these examples are accessible via the keyboard unless a HREF is
added which in my view is correct, and re-enforces my opinion that an A element
without an HREF is not an "anchor" or "link" to anything -- just an element.

If you accept the premiss that "these deserve to trigger the a:link, a:active
and a:visited styles by default" then so does this <p onclick="foo();">bar</p>;

A BUG DOES HOWEVER EXIST in Safari if an A element does not initially contain a
HREF attribute and then a HREF is created programatically after the page is
initially loaded.

Both Safari Version 2.0.4 (419.3) and the nightly build (r15830) do not
dynamically update the style for an Anchor in the case where the HREF is later
added programatically.
see http://code.clientside.net.au/safari/ahref.html

My expectation is that the A element with no initial HREF attribute would
become styled, ether by the default style or a style with higher precedence
after a HREF is added programatically.

Firefox 1.5 on Mac behaves as expected.

Webkit nightly build (r15830) can be made to behave as expected if a CSS
attribute selector in the form "a[href] {}" is present in a stylesheet.
see http://code.clientside.net.au/safari/ahref2.html


-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list