html绑定属性做什么? [英] What does the html bindpoint attribute do?

查看:85
本文介绍了html绑定属性做什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一个Facebook应用程序,并在调查消息线程页面的(X)HTML源代码以查看是否可以链接到线程中的特定消息(显然不是)时,我遇到了一个HTML属性我似乎找不到任何有关的信息。页面上的某些span元素有一个bindpoint属性,设置为各种值(可能是元素ID)。以下是页面来源的摘录(我用Xs替换了一些私人信息)

I'm currently making a facebook application and while investigating the (X)HTML source code for a message thread page to see if it was possible to link to specific messages within threads (apparently it's not), I encountered an HTML attribute that I cannot seem to find any information about. Some span elements on the page had a 'bindpoint' attribute that was set to various values (presumably element IDs). Here is an excerpt from the page source (I replaced some private info with Xs)

<div class="GBThreadMessageRow_Info">
  <span class="GBThreadMessageRow_AuthorLink_Wrapper" bindpoint="authorLinkWrapper">
    <a href="http://www.facebook.com/profile.php?id=XXXXXXXXX" class="GBThreadMessageRow_AuthorLink">XXXXXXXX</a>
  </span>
  <span class="GBThreadMessageRow_Date">
    April 8, 2010 at 10:13pm
  </span>
  <span bindpoint="branchLinkWrapper" class="GBThreadMessageRow_BranchLink"><a href="/ajax/messaging/composer.php?thread=XXXXX&amp;msg_id=XXXXX&amp;id=XXXXXX" rel="dialog-post">Reply</a></span>
  <span bindpoint="reportLinkWrapper" class="GBThreadMessageRow_ReportLink"> • <a href="/ajax/report.php?content_type=9&amp;cid=XXXXX&amp;rid=XXXXX&amp;cid2=XXXX&amp;cid3=X&amp;h=XXXXX" rel="dialog" class="action">Report</a></span>
</div>

我从未看过这个属性之前和任何有关它的信息将是有用的/有用的/有趣的。谢谢!

I have never seen this attribute before and any information about it would be useful/helpful/interesting. Thanks!

推荐答案

正如在评论中所说,它必须是他们在JavaScript代码中做的。

As was said in the comments, it has to be something they're doing in the javascript code.

Facebook使用一种有趣的技术来动态导入他们的javascript文件(基本上他们似乎写在脚本标签中javascript,在必要时),并不像通过您找到的第一个文件按ctr​​l-F那么简单。

Facebook uses an interesting technique to import their javascript files dynamically (basically they seem to write out script tags in the javascript, when necessary), and it's not quite as simple as just pressing ctrl-F through the first file you find.

因此,总而言之,$ code> bindpoint 属性是Facebook生态系统内部的一部分,而不是标准的HTML。从名称,我认为它与什么事件(点击,鼠标等)绑定到有问题的元素,这是由$ code> bindpoint 属性。或者也许这与所涉及的元素应该绑定的元素有关,例如标签的属性的。无论如何,这是纯粹的猜测。

So, in conclusion, the bindpoint attribute is something internal to the Facebook eco-system, and not standard HTML. From the name, I assume it has something to do with which events (clicks, mouseovers, etc.) should be binded to the element in question, which is signified by a variable name give in the bindpoint attribute. Or maybe it has to do with which element the element in question should be 'binded' to, like the for attribute for a label. Anyway, this is pure speculation.

这篇关于html绑定属性做什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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