Closed Bug 311013 Opened 19 years ago Closed 16 years ago

Copying a bookmark and pasting it as HTML should be implemented better

Categories

(Firefox :: Bookmarks & History, defect)

defect
Not set
trivial

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: ispiked, Unassigned)

Details

Right now when multiple bookmarks are copied to the clipboard and pasted as HTML
nothing is inserted in between the HTML, so the <a>s end up getting merged
together. It would be better if we transformed this into a <ul> or at least add
a <br /> or something at the end of each anchor.

Steps to reproduce:
1. Open the bookmarks manager and select multiple bookmarks. 
2. Copy them to the clipboard.
3. Paste them into somewhere that's expecting HTML (MS Word).

This is very, very trivial, but would be nice to have.
Places in Firefox 3 uses a definition list (DL, DT, DD) to wrap bookmark nodes on paste:

http://mxr.mozilla.org/mozilla-central/source/toolkit/components/places/src/utils.js#490

Seems like that satisfies this bug, but if not, feel free to reopen.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.