Closed GoogleCodeExporter closed 9 years ago
Step 6:
Not found in document.
Searching across HTML files works only in Code View. If you open the Find
dialog in BV and choose "All HTML Files", you will get a warning. You
circumvented that warning by opening the dialog in CV, selecting "All HTML
Files" and then switching back to BV.
It's a loophole I intend to fix. Thanks for spotting it.
Step 8:
The second instance is not found.
This is a *very* specific bug. The problem is that the XHTML file is internally
stored in a QDomDocument which when converted back into text, reorders the
attributes (which it shouldn't do). This makes the match fail. See the related
bugs on Nokia's bugtracker:
http://bugreports.qt.nokia.com/browse/QTBUG-5364
http://bugreports.qt.nokia.com/browse/QTBUG-8158
I'm already fed up with QDom, and plan to replace it with Xerces-C++. That is
issue 367, and this bug will be fixed when that is implemented.
You can work around this problem by changing your search term to this:
<p[^>]*class="pn"[^>]*>(.+)</p>
Step 10:
You can't search for HTML code in the Book View. You can only search for the
rendered, shown text. This is by design.
Step 12:
Same as step 8.
I intent to fix the step 6 problem now, and step 8 will be fixed when
Xerces-C++ replaces QDomDocument.
Original comment by Strahinja.Markovic@gmail.com
on 25 Jun 2010 at 1:08
WRT step 8: Xerces reorders the attributes just like QDom. So you'll have to
make sure your searches don't depend on the order of the attributes (which
shouldn't be difficult).
There's nothing I can do.
Original comment by Strahinja.Markovic@gmail.com
on 12 Sep 2010 at 4:11
Original issue reported on code.google.com by
BridgeBl...@gmail.com
on 23 Jun 2010 at 7:51Attachments: