W3C home > Mailing lists > Public > www-style@w3.org > May 2013

[selectors4] Local-link, <base> and javascript

From: François REMY <francois.remy.dev@outlook.com>
Date: Mon, 6 May 2013 21:31:02 +0200
Message-ID: <DUB120-DS22CFB5A1CEB649C3925A91A5B90@phx.gbl>
To: "CSS WG" <www-style@w3.org>
Some quick comments to make about the local-link pseudo-class:

    (1) Shouldn’t we consider the <base> tag as the document root URL? If we 
save a document on our hard drive, some browsers add a <BASE> tag to make 
sure the relative urls keep working, so maybe :local-link should consider 
that too.

    (2) What happens if a virtual navigation occurs (via history.pushState); 
according to me we should maybe consider the ‘displayed’ url and not the 
real one, otherwise this could cause confusion (hitting reload would make 
the applied style change).

    (3) Are ‘javascript:void(0)” links considered non-local? external? 
shouldn’t we make a not saying that an external link looks like 
:any-link:not(:local-link(0), [href^=javascript])?

Best regards,
Received on Monday, 6 May 2013 19:31:33 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:29 UTC