From b55dc711c6c4d8bc47b7ac2c9cf303c4dbf822f3 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Sun, 31 Mar 2024 23:33:15 +0200 Subject: Add support for the main HTML tag Fixes: https://github.com/dillo-browser/dillo/issues/109 --- src/html.cc | 2 ++ src/styleengine.cc | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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 + * Copyright (C) 2024 Rodrigo Arias Mallo * * 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 + * Copyright 2024 Rodrigo Arias Mallo * * 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}" -- cgit v1.2.3