Open Bug 82676 Opened 24 years ago Updated 4 years ago

Find Dialog can't find quotes generated by <q>

Categories

(SeaMonkey :: UI Design, defect)

defect
Not set
minor

Tracking

(Not tracked)

Future

People

(Reporter: web, Unassigned)

References

(Depends on 1 open bug)

Details

(Keywords: helpwanted, Whiteboard: [Hixie-P2][Hixie-P0])

Attachments

(1 file)

Using Mozilla 0.9. If you search for a quote (") in a page where you've used a <q> to quote text, the Find dialog will not find the quote. Mozilla also misses text generated by :after and :before. Minimal HTML / CSS example will be attached shortly. Not sure if XP App is the correct component.
Over to kin. No idea how we'll fix this.
Assignee: pchen → kin
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 98 → All
Hardware: PC → All
This is sort of like looking for the bullet/number in a bullet/number list. They are rendered on screen, but they aren't in the content tree, so we don't find them. They're generated/anonymous content. Something like this probably won't happen till after 1.0.
Status: NEW → ASSIGNED
Priority: -- → P3
Target Milestone: --- → mozilla1.0.1
Isn't this similar to http://bugzilla.mozilla.org/show_bug.cgi?id=72734? In that bug, generated content isn't selected for a cut and paste. Seems the same sort of thing, as this bug misses generated content in find.
Also, http://bugzilla.mozilla.org/show_bug.cgi?id=52109 is similar. Generated content is not picked up by :first-letter.
Just for the record, you also cannot select these quotes and they disappear on paste to, say, Emacs.
Whiteboard: [Hixie-P2][Hixie-P0]
Blocks: 106961
mass moving open bugs pertaining to find in page/frame to pmac@netscape.com as qa contact. to find all bugspam pertaining to this, set your search string to "AppleSpongeCakeWithCaramelFrosting".
QA Contact: sairuh → pmac
--> akkana (the new find-meister)
Assignee: kin → akkana
Status: ASSIGNED → NEW
Priority: P3 → --
Target Milestone: mozilla1.0.1 → ---
I'm using normal range iterators. I don't believe there's currently any way to iterate over normal and generated content together, or even any clear understanding of where generated content should come in the iteration order (since its position on the page may be different from its position in the tree). Joe, any insights? Marking future/helpwanted for now; if it turns out there is an iterator, or we get a clear idea how to write one, I can pull it in.
Keywords: helpwanted
Target Milestone: --- → Future
Kin points out that it is possible to get an iterator that traverses generated content: see the commented-out section near the beginning of nsSelection.cpp. Here's part of the comment: // Selection's use of generated content iterators has been turned off // temporarily since it bogs down selection in large documents. Using // generated content iterators is slower because it must resolve the style // for the content to find out if it has any before/after style, and it // increases the number of calls to GetPrimaryFrame() which is very expensive. (and there's a little more supporting detail) If it's so slow that the delay is noticable when making selections, imagine what this will do to find, which has to search through the entire tree. Please, let's not do this until/unless someone comes up with a way to make it reasonably fast. Note that Mozilla can't select the generated content either.
QA Contact: pmac → sairuh
Product: Core → Mozilla Application Suite
Please se also 12460.
Depends on: 12460

Removing myself as assignee for editor bugs, since the editor project is (sadly) long gone.

Assignee: akkzilla → nobody
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: