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>
This commit is contained in:
parent
10684b6d82
commit
7fc40c6bee
|
@ -427,6 +427,7 @@ If you would like to disable page caching, set the [Total cache size limit] to 0
|
|||
* text/plain
|
||||
* text/gemini
|
||||
* text/html
|
||||
* application/xhtml+xml
|
||||
* text/markdown
|
||||
* text/gophermap
|
||||
* image/*
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue