Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.11.1
-
None
Description
Hello,
When I setHtml in QTextBrowser with some <a name="Named"> tags with text, if I retrieve html from cursor selection, text get outside of anchor.
Like this <a name="T1">Text</a> becomes <a name="T1"><a/>Text.
Look that all plays here:
[https://code.woboq.org/qt5/qtbase/src/gui/text/qtextdocument.cpp.html#_ZN17QTextHtmlExporter12emitFragmentERK13QTextFragment|QTextHtmlExporter::emitFragment]
Why close anchor before adding text?