如何跨浏览器是锚点元素的ping属性? [英] How cross browser is the ping attribute of anchor elements?

查看:93
本文介绍了如何跨浏览器是锚点元素的ping属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

< a ping =...> 是HTML5的锚点元素中一个相对较新的,相对未知的属性。

<a ping="..."> is a relatively new, relatively unknown attribute in HTML5's anchor element.

如何实现跨浏览器兼容性?

How cross-browser compliant is it?

我查看了MDN和 http://caniuse.com ,但没有发现任何建议浏览器支持。

I've looked at online sources like MDN and http://caniuse.com, but found nothing that suggest browser support.

我想知道这是否是一个可行的选项链接跟踪今天在2014年。

I want to know if it's a viable option for link tracking today in 2014.

推荐答案

ping W3C草案的HTML5。它仍然保留在W3C草案的HTML5中,直到2010年初 - 最后一个草案包括它是 W3C工作草案4 2010年3月;下一稿是 W3C工作草案2010年6月24日

The ping attribute was included in pre-W3C drafts of HTML5. It remained in W3C drafts of HTML5 up until early 2010 - the last draft to include it was W3C Working Draft 4 March 2010; the next draft was W3C Working Draft 24 June 2010.

为什么会被移除?这是大规模不受欢迎的 - 专为广告客户跟踪点击次数的HTML功能广告。希茜的论点是他们已经可以做到了; ping 刚刚使过程更透明。浏览器可以提供阻止 ping 跟踪的功能。反对意见是,如果浏览器具有此功能,发布商会避免 ping ,与当前的点击跟踪技术相比是不可靠的。

Why was it removed? It was massively unpopular - an HTML feature designed for advertisers to track clicks on adverts. Hixie's argument was that they can already do that; ping just made the process more transparent. And browsers would be able to offer a feature to block ping tracking. The counter-argument to that is that if browsers had this feature, publishers would avoid ping, it being unreliable compared to current click-tracking techniques.

有些浏览器支持它,因为:

Some browsers support it because of a combination of:


  • 他们早就实现了,需要删除它;和

  • 他们支持WHATWG规范,而不是W3C规范。

支持它的浏览器似乎是 Safari Chrome 。 (这是不奇怪的后者;它最初使用Safari的WebKit作为其布局引擎,现在使用Blink,一个WebKit的叉子。) Firefox 也支持它,但自2008年以来,支持已禁用

Browsers that support it seem to be Safari and Chrome. (It's no surprise that the latter does; it originally used Safari's WebKit as its layout engine, and now uses Blink, a fork of WebKit.) Firefox also supports it, but since 2008, support has been disabled by default - it can be enabled through about:config, though I don't suppose many people do.

Internet Explorer 可以通过about:config启用它。 http://connect.microsoft.com/IE/feedback/details/793755/ie11-feature-request-support-for-the-ping-attribute-on-a\">不支持它(尚未?)< a>。 Opera 12.x 不支持该属性,但我没有检查Opera的下一代基于Blink的浏览器。

Internet Explorer does not support it (yet?). Opera 12.x does not support the attribute, but I haven't checked in Opera's next generation of Blink-based browsers.

这篇关于如何跨浏览器是锚点元素的ping属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆