[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
Sat Aug 12 05:00:34 PDT 2006


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





------- Comment #8 from contact at nickshanks.com  2006-08-12 05:00 PDT -------
users can configure <a href> links how they like in almost all browsers, i.e.
underlined all the time, underlined on hover, not underlined, with any colours
they like for plain (often blue) and visited (often purple or green), and
sometimes active links can be custom coloured too. (i mean in the browser
prefs, not in a user stylesheet)

I have a webpage that uses <span onclick="foo()">. it only exists in that form
if the user has javascript, and is used to unhide extra data. without
javascript, the data is displayed anyway. there is a reason why i cannot use <a
href="javascript:foo()"> partly that it doesn't work in all browsers, partly
that "javascript" is not a valid transport protocol.
I want to tell the browser, "Hey, style this element as if it were a link,
using whatever the user's preferences for that are"

So to answer your questions:
> Is <a onclick="foo()> in anyway different to <i onclick="foo()>
no.

> why do you consider one to be a link?
because I know that's how it behaves when you activate it. (kbd or mouse)

> What does :active, :visited or :link mean in the context of script execution?
nothing at all.

> If you need the script trigger to show different states can't your script apply them as nessessary?
you misunderstand. the script actually removes the handlers anyway so it would
never display as "clicked", i just want it to look like all other links on the
page.

> Doesn't this do that? --  a[onclick] {color:red;border:1px red dotted;}
only if the user has links set to red with 1px dotted borders!
personally mine are blue with underlines on hover. this is why i want the
browser to style the element, because only the browser knows how links would
normally look.


-- 
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