summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRodrigo Arias Mallo <rodarima@gmail.com>2024-03-31 23:33:15 +0200
committerRodrigo Arias Mallo <rodarima@gmail.com>2024-03-31 23:45:46 +0200
commitb55dc711c6c4d8bc47b7ac2c9cf303c4dbf822f3 (patch)
treec8c9d43026481cd76ec15644a468cd2865520204 /src
parentc54576fb442f1198b70fc7f3021d2bbeaa2fc045 (diff)
Add support for the main HTML tag
Fixes: https://github.com/dillo-browser/dillo/issues/109
Diffstat (limited to 'src')
-rw-r--r--src/html.cc2
-rw-r--r--src/styleengine.cc3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/html.cc b/src/html.cc
index d8debb4a..c0d4d388 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -2,6 +2,7 @@
* File: html.cc
*
* Copyright (C) 2005-2007 Jorge Arellano Cid <jcid@dillo.org>
+ * Copyright (C) 2024 Rodrigo Arias Mallo <rodarima@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -3503,6 +3504,7 @@ static const TagInfo Tags[] = {
/* legend 01?? */
{"li", B8(01110),'O', Html_tag_open_li, NULL, Html_tag_close_li},
{"link", B8(10001),'F', Html_tag_open_link, NULL, NULL},
+ {"main", B8(01110),'R', Html_tag_open_sectioning, NULL, NULL},
{"map", B8(01101),'R', Html_tag_open_default, Html_tag_content_map,
Html_tag_close_map},
{"mark", B8(01011),'R', Html_tag_open_default, NULL, NULL},
diff --git a/src/styleengine.cc b/src/styleengine.cc
index 97ca417e..77d19db3 100644
--- a/src/styleengine.cc
+++ b/src/styleengine.cc
@@ -2,6 +2,7 @@
* File: styleengine.cc
*
* Copyright 2008-2009 Johannes Hofmann <Johannes.Hofmann@gmx.de>
+ * Copyright 2024 Rodrigo Arias Mallo <rodarima@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -997,7 +998,7 @@ void StyleEngine::init () {
":visited {color: #800080; text-decoration: underline; cursor: pointer}"
"h1, h2, h3, h4, h5, h6, b, strong {font-weight: bolder}"
"address, article, aside, center, div, figure, figcaption, footer,"
- " h1, h2, h3, h4, h5, h6, header, nav, ol, p, pre, section, ul"
+ " h1, h2, h3, h4, h5, h6, header, main, nav, ol, p, pre, section, ul"
" {display: block}"
"i, em, cite, address, var {font-style: italic}"
":link img, :visited img {border: 1px solid}"