You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm seeing issues with this extension on a site that has dynamic updates to sections on a page. These are updated by JS setting element.innerHTML. When the dynamic update happens, these elements lose the OpenDyslexic font while the rest of the page retains it.
Digging a little, shows that the helperbird-font-opendyslexic-regular class that's added to every element is no longer added to the elements within the updated block, which is why they're not picking up the font any more.
Extension version: 40.1.0
Browser: Chrome 115
The text was updated successfully, but these errors were encountered:
I've managed to create a minimal reproduction case. With the following page the font wil disappear from the dynamic block after the update (5 seconds).
<htmllang="en"><head><styletype="text/css">h1 {
font-family: sans-serif;
}
p {
font-family: sans-serif;
}
</style></head><body><h1>Test page</h1><p>Static paragraph</p><divid="target"><p>Paragraph in dynamic block</p></div></body><script>functionreplaceBlock(){constnode=document.getElementById('target');node.innerHTML='<p>Updated paragraph</p>';}window.setTimeout(replaceBlock,5*1000);</script></html>
Hi,
I'm seeing issues with this extension on a site that has dynamic updates to sections on a page. These are updated by JS setting
element.innerHTML
. When the dynamic update happens, these elements lose the OpenDyslexic font while the rest of the page retains it.Digging a little, shows that the
helperbird-font-opendyslexic-regular
class that's added to every element is no longer added to the elements within the updated block, which is why they're not picking up the font any more.Extension version: 40.1.0
Browser: Chrome 115
The text was updated successfully, but these errors were encountered: