Closed
Bug 80116
Opened 24 years ago
Closed 21 years ago
Need "content analyzing" APIs
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: dr, Assigned: dr)
References
Details
(Whiteboard: [blocks 78021])
Several places in the code need to figure out difficult things about "what sort
of content I'm looking at" -- for example, to figure out whether a content node
is within a link, you need to determine whether you or any of your ancestors are
an HTML <a>, an imagemap <area> with |href| attributes, an XLink, etc.
Code which needs this includes UI code for context menus (eg., you only want to
show the "copy link location" context menu item, and enable that command, if you
clicked on a link), as well as drag and drop (different content behaves
differently in DnD).
We need a single "content analyzing" API to determine useful information about
content nodes.
For reference, see code currently in nsContextMenu.js, nsPresShell.cpp, etc.
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → mozilla1.0
<spam>
Netscape 6.0 went out with Copy Link Location working with imagemaps. The next
Netscape RTM should not go out with it broken. Bug 80116 and bug 78021 should be
fixed for 0.9.2.
This should be a simple task of filling in a new XPCOM API with Bill Law's
content-sniffing code in nsContextMenu.js. (More content analyzing APIs should
be filled in post-RTM as needed).
</spam>
Severity: enhancement → major
Target Milestone: mozilla1.0 → mozilla0.9.2
Updated•24 years ago
|
Target Milestone: mozilla0.9.2 → mozilla0.9.3
Marked nsBranch on behalf of blocked bug 78021. This should be minimal, though,
in the spirit of low-risk and high-impact. For the branch, this will be one or
two methods on a new interface which will support only that functionality needed
to detect imagemaps.
[spam] -> 0.9.5
Target Milestone: mozilla0.9.4 → mozilla0.9.5
[spam] dr@netscape.com's bugs subject to redistribution by chofmann. R!
Assignee: dr → chofmann
Status: ASSIGNED → NEW
Priority: P2 → --
Target Milestone: mozilla0.9.5 → ---
![]() |
||
Comment 6•21 years ago
|
||
jst, peterv, sicking, what do you think?
I'm not entierly sure what all is requested here. Just a way to check if a node
is a link and what url it has?
Comment 8•21 years ago
|
||
I think I don't care. Reopen if you disagree and want to take this somewhere...
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → WONTFIX
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•