Intent to Implement and ship : Implement activation behaviour of link element

49 views
Skip to first unread message

Habib Virji

unread,
Nov 7, 2014, 11:37:02 AM11/7/14
to blin...@chromium.org

Contact emails

habib...@samsung.com

 

Spec

https://html.spec.whatwg.org/multipage/semantics.html#the-link-element

 

Summary

Support activation behaviour of link elements to follow the hyperlink created by the link element when it is fully active.

 

Motivation

http://crbug.com/422732

Compatibility Risk

Low.Already implemented in WebKit, IE and FF not sure.

Will this feature be supported on all five Blink platforms (Windows, Mac, Linux, Chrome OS and Android)?

Yes.

OWP launch tracking bug?

http://crbug.com/422732

Requesting approval to ship?

Yes

Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=137597

Webkit patch: https://bugs.webkit.org/attachment.cgi?id=239699

PhistucK

unread,
Nov 7, 2014, 12:14:43 PM11/7/14
to Habib Virji, blink-dev
Three of the links you supplied are for Element.closest(); and are unrelated to this intent...

What is the feature here exactly?
When a click event is dispatched on a <link> element (not an anchor), the browser should navigate to its href?
And if so, where does the specification mandate it? I looked at the specification link you mentioned and I do not see any section about this (there are only details about hyperlinks (<a>, <area>), not <link>, as far as I see).


PhistucK

To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.

Elliott Sprehn

unread,
Nov 7, 2014, 1:14:19 PM11/7/14
to Habib Virji, Ian Hickson, blink-dev
This feature doesn't make sense to me, <link> has no visual presentation I don't know why the spec seems to be claiming that it should respond to click events by navigating.

I don't think we should implement this, real pages don't use <link> as a replacement for <a href> by using CSS to make it visible, nor should we be trying to encourage that.

Do you have a better use case for this?

PhistucK

unread,
Nov 7, 2014, 3:09:36 PM11/7/14
to Elliott Sprehn, Habib Virji, Ian Hickson, blink-dev
I just tested Internet Explorer 11 and it does not implement it.


PhistucK

Message has been deleted

Philip Jägenstedt

unread,
Nov 8, 2014, 6:03:28 PM11/8/14
to Elliott Sprehn, Habib Virji, Ian Hickson, blink-dev
I agree that this seems a bit curious. It was added to the spec in
https://html5.org/r/8222 with no bug reference.

Hixie, do you remember what prompted you to spec this?

Philip
Reply all
Reply to author
Forward
0 new messages