Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.7.0
-
None
-
1753d696070895f309c46ba5aee662b0f3a18bde
Description
When including a CSS file in a HTML file sent to QTextDocument, and the CSS file starts with «@charset "UTF-8";», which is the correct way of declaring that, the parsing fails.
If you omit the space, like «@charset"UTF-8";» the parsing succeeds, which is wrong.
The bug is at line 2179 or so in src/gui/text/qcssparser.cpp, but I'm not sure what the correct way to get it to process the whitespace there is.
Attachments
For Gerrit Dashboard: QTBUG-54829 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
173995,3 | QCss: Fix parsing of charset | 5.6 | qt/qtbase | Status: MERGED | +2 | 0 |