Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
6.5
-
None
-
Tested on Arch Linux.
Description
If a string literal has escaped quotes in it, `qmldom --dump-ast` generates invalid XML.
To reproduce, run `qmldom --dump-ast` on the following:
import QtQuick 6.3 Item { id: item property string name: "my \" name" }
The result will have in its output:
<StringLiteral value="my \" name" literalToken="off:65 len:12 l:4 c:27 ">
This will not be parseable as XML because this kind of escaping is illegal in XML.
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-116618 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
574276,3 | dom: fix string escaping when dumping the AST to xml | dev | qt/qtdeclarative | Status: DEFERRED | 0 | -1 |