aboutsummaryrefslogtreecommitdiff
path: root/src/html_common.hh
diff options
context:
space:
mode:
authorRodrigo Arias Mallo <rodarima@gmail.com>2025-08-24 16:16:40 +0200
committerRodrigo Arias Mallo <rodarima@gmail.com>2025-08-30 16:08:34 +0200
commitcfa3923a5ffed809b4d4a54f6100f85b9f7a296d (patch)
tree2f63fe05cae017eeb2a0739237f27c371256a06a /src/html_common.hh
parent22b4be77888ada3536b57f1da3e265000bc2df82 (diff)
Don't show form inputs with display:none
When the current element or a parent has display:none, the display_none flag is set and no new element should be added to the viewport. For form inputs, instead of always adding the Embed to the viewport, we only do it if display_none is not set. The Embed is still registered as an input in the form, so it will continue to send the proper form values to the server. For complex buttons that can contain nested elements inside, we switch to a dummy button that doesn't have a Textbox and rely on the logic at html.cc to avoid creating more child elements until the display_none is unset. Fixes: https://github.com/dillo-browser/dillo/issues/433
Diffstat (limited to 'src/html_common.hh')
0 files changed, 0 insertions, 0 deletions