Closed
Bug 527924
Opened 15 years ago
Closed 15 years ago
jetpack.menu.context.page.on("a").add() has no effect for links having HTML elements in them
Categories
(Mozilla Labs :: Jetpack Prototype, defect, P2)
Mozilla Labs
Jetpack Prototype
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: LpSolit, Unassigned)
Details
Jetpack 0.6.1 on Firefox 3.5.5:
jetpack.future.import("menu");
jetpack.menu.context.page.on("a").add( function(context) ({
label: "Link Properties",
command: function() {
jetpack.notifications.show( "Description: " + (context.node.title || "none") +
" URL: " + context.node.href );
}
}));
This code is not triggered in the following case:
<a href="http://www.mozilla.org" title="Mozilla"><span>Visit Mozilla website</span></a>
This link contains a <span> element, preventing Jetpack to display the item in the context menu. It should be possible to bypass this problem and let it do the right thing.
Comment 1•15 years ago
|
||
This is true. We check the node the user clicked but don't go up its parent chain.
OS: Linux → All
Hardware: x86 → All
Updated•15 years ago
|
Priority: -- → P2
Comment 2•15 years ago
|
||
We will be monitoring all these issues after the rebooted Jetpack code base is released in the first week of March to ensure their causes are not duplicated. Many of the bugs/issues with the prototype version of Jetpack will be made irrelevant given the structure of the new SDK.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•