Closed Bug 1999367 Opened 1 year ago Closed 7 months ago

Page Extractor should be able to cite where content came from and then provide a mechanism to scroll it into view

Categories

(Core :: Machine Learning: On Device, enhancement)

enhancement

Tracking

()

RESOLVED WONTFIX

People

(Reporter: gregtatum, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [genai])

You could pass along IDs of DOM nodes as an opaque way to reference content. This is probably related to the work in Bug 1995618, dealing with passing links as a separate thing. I could see it following a form like this:


/**
 * A string of the form `<link-1>`, `<link-32>`, `<div-10>`.
 */
type NodeId = string;

/**
 * An opaque mapping of a NodeId to the corresponding node.
 */
type NodeMap = Map<NodeId, Node>

/**
 * @param {NodeId} id
 * @param {NodeMap} nodeMap
 */
function scrollNodeIntoView(id, nodeMap) {
  const node = nodeMap.get(id);
  if (node && node.isConnected) {
    getClosestElement(node).scrollIntoView()
  }
}
Type: defect → enhancement
Priority: -- → P3
Component: Machine Learning: General → Machine Learning: On Device

The component has been changed since the backlog priority was decided, so we're resetting it.
For more information, please visit BugBot documentation.

Priority: P3 → --
Whiteboard: [genai]

I'm going to mark as wontfix, as this was a vague comment in a product document, and it hasn't come up again. We can always re-open if needed.

Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.