mirror of
https://github.com/rkd77/elinks.git
synced 2024-08-22 21:14:32 -04:00
Also highlight HTML if the MIME type is application/xhtml+xml
This commit is contained in:
parent
550532c5f9
commit
b01c1a6361
@ -242,6 +242,7 @@ render_encoded_document(struct cache_entry *cached, struct document *document)
|
||||
#ifdef CONFIG_DOM
|
||||
if (cached->content_type
|
||||
&& (!strlcasecmp("text/html", 9, cached->content_type, -1)
|
||||
|| !strlcasecmp("application/xhtml+xml", 21, cached->content_type, -1)
|
||||
|| !strlcasecmp("application/rss+xml", 19, cached->content_type, -1)
|
||||
|| !strlcasecmp("application/xbel+xml", 20, cached->content_type, -1)
|
||||
|| !strlcasecmp("application/x-xbel", 18, cached->content_type, -1)
|
||||
|
Loading…
Reference in New Issue
Block a user