| Trolltech Home | Qt4-preview-feedback Home | Recent Threads | All Threads | Author | Date | |
| All threads index page 1 | |
Trying to open the attached test html page with QtWebKit (place image.svg in /tmp) results in some unexpected behavior: The <img> tag doesn't display the image at all (even though constructing a QImage from the svg works), and the <object> tag displays the image, but stops all further processing of the document. The latter can be worked around by replacing the (valid XHMTL) <object .... /> with the older <object ...></object> Apparently WebKit's parser looks for an object closing tag unconditionally, even if the opening tag is the closing tag at the same time.
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>test</title> </head> <body> <p>text 1<img src="file:///tmp/image.svg" width="100" height="100"/></p> <p>test 2<object type="image/svg+xml" data="file:///tmp/image.svg" width="100" height="100"/>test 3</p> <p>test 4</p> </body> </html>
Attachment:
Attachment:
image.svg
Description: image/svg