aboutsummaryrefslogtreecommitdiff
path: root/src/browsertab.cpp
diff options
context:
space:
mode:
authorThomas Groman <tgroman@nuegia.net>2021-04-27 21:56:52 -0700
committerFelix (xq) Queißner <git@mq32.de>2021-05-08 10:51:34 +0200
commit7fc40c6beeb3be2c8c257df2ddf57ebbea3a3efc (patch)
tree61a675955605e774c92fd8bd8b4aad73c6e364c8 /src/browsertab.cpp
parent10684b6d82f1843eff3921da40802d335fb3cf5c (diff)
Add support for XHTML This patch sends XHTML down the HTML renderer path instead of erroring out unsupported mime. It does not implement XHTML exactly to the spec. That could hopefully be looked at in the future.
Signed-off-by: Thomas Groman <tgroman@nuegia.net>
Diffstat (limited to 'src/browsertab.cpp')
-rw-r--r--src/browsertab.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/browsertab.cpp b/src/browsertab.cpp
index fa4ed9a..f790e8e 100644
--- a/src/browsertab.cpp
+++ b/src/browsertab.cpp
@@ -649,7 +649,7 @@ void BrowserTab::renderPage(const QByteArray &data, const MimeType &mime)
this->current_location,
doc_style);
}
- else if (not plaintext_only and mime.is("text","html"))
+ else if (not plaintext_only and mime.is("text","html") or mime.is("application","xhtml+xml"))
{
document = HtmlRenderer::render(
data,