On Wed, 22 Feb 2006 12:48:32 +0000, Neil wrote:
> Philip Chee wrote:

>>if (linkNode.getAttribute("rel") == "sidebar") {
>>  // This is the Opera convention for a special link that - when clicked - 
>> allows
>>  // you to add a sidebar panel.  We support the Opera convention here. The 
>> link's
>>  // title attribute contains the title that should be used for the sidebar 
>> panel.

I copied this directly from the Firefox contentAreaClick() handler.

> Out of interest, is this <a rel="sidebar"> or <link rel="sidebar">?

Google says that the Opera spec is <a rel="sidebar"> but based on my rather
inadequate understanding of the Firefox code, I *think*

<http://lxr.mozilla.org/seamonkey/source/browser/base/content/browser.js#5042>
   if (target instanceof HTMLAnchorElement ||
       target instanceof HTMLAreaElement ||
       target instanceof HTMLLinkElement) {

This means that if a rel="sidebar" occurs in any of these three tags then
the bookmark as sidebar code is invoked.

Phil
-- 
Philip Chee <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
http://flashblock.mozdev.org/ http://xsidebar.mozdev.org
Guard us from the she-wolf and the wolf, and guard us from the thief,
oh Night, and so be good for us to pass.
[ ]A clean disk is the sign of a warped drive.
* TagZilla 0.059
_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners

Reply via email to