Does it have the proper doctype set?
Does it have the xml declaration as the first line?
Could it be that when parsing html with svg they relax the rules?
I checked, under html5 the body start and end tags are optional. Of course they are required for xhtml but something is convincing the QWebEngine to parse it as html and not xhtml.
The Preview code is always loaded via SetContent with the xhtml media type, so something different about that file is causing it to be parsed under html rules.
Hmmmm
|