MantisBT - NetSurf
View Issue Details
0002865NetSurfLayoutpublic2024-01-26 19:022024-02-02 03:32
ReporterAndrew Valencia 
Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Product Version3.11 
Target VersionFixed in Version 
Fixed in CI build #
Reported in CI build #
URL of problem page
Summary0002865: innerHTML and textContent can be assigned, but page view does not update
Descriptionsquirrelmail, a quite old PHP mailer, during startup ends up assigning some calculated HTML into an Element's innerHTML. It has things like onclick's and such, but the targeted element remains unresponsive.

Similarly, you can write a simple update string to the textContent of a node, and what is displayed remains unchanged.
Steps To ReproduceRun the supplied HTML page, click on the text, and after a delay it'll change on most browsers. It remains unchanged on Netsurf.
TagsNo tags attached.
Attached Fileshtml hi.html (499) 2024-01-26 19:02
https://bugs.netsurf-browser.org/mantis/file_download.php?file_id=739&type=bug

Notes
(0002430)
Andrew Valencia   
2024-02-02 03:32   
I've been digging through the source. It looks like there's logic to modify textContent and all, and it does indeed replace the node in the DOM. But rendering is from a box representation, which I don't see any logic making it rethink the box data structures. I'm going to go play with making a specific box rethink its shape, then bubble upward as needed.

(Or somebody can tell me that I'm on the wrong track.)

Issue History
2024-01-26 19:02Andrew ValenciaNew Issue
2024-01-26 19:02Andrew ValenciaFile Added: hi.html
2024-02-02 03:32Andrew ValenciaNote Added: 0002430