diff options
author | Rodrigo Arias Mallo <rodarima@gmail.com> | 2025-08-24 18:02:58 +0200 |
---|---|---|
committer | Rodrigo Arias Mallo <rodarima@gmail.com> | 2025-08-30 16:08:34 +0200 |
commit | e36fef7d312e226988c9733b03b18089bdf3e295 (patch) | |
tree | cba7872513e59cb17035d000a71fd53f8829e79a /src/html_common.hh | |
parent | cfa3923a5ffed809b4d4a54f6100f85b9f7a296d (diff) |
Consider also the current element display:none
The display_none flag is only set _after_ the open tag has run, so it
will only affect child elements. If the current form input element has a
display:none itself, it should be also considered. The new function
a_Html_should_display() evaluates both conditions.
Diffstat (limited to 'src/html_common.hh')
-rw-r--r-- | src/html_common.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/html_common.hh b/src/html_common.hh index 2bb6c935..926f9fc9 100644 --- a/src/html_common.hh +++ b/src/html_common.hh @@ -3,7 +3,7 @@ * * Copyright (C) 2008-2016 Jorge Arellano Cid <jcid@dillo.org> * Copyright (C) 2008-2014 Johannes Hofmann <Johannes.Hofmann@gmx.de> - * Copyright (C) 2024 Rodrigo Arias Mallo <rodarima@gmail.com> + * Copyright (C) 2024-2025 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 @@ -288,5 +288,6 @@ bool a_Html_tag_set_valign_attr(DilloHtml *html, const char *tag, int tagsize); void a_Html_load_stylesheet(DilloHtml *html, DilloUrl *url); +bool a_Html_should_display(DilloHtml *html); #endif /* __HTML_COMMON_HH__ */ |