dokieli icon indicating copy to clipboard operation
dokieli copied to clipboard

External stylesheets not loading after updating the DOM

Open csarven opened this issue 3 years ago • 2 comments

After opening a URL with the openDocument feature, without changing the document location, dokieli updates the DOM with the opened/target resource's HTML. While the updated document tree includes the stylesheet links, the viewport is not updated in that the CSS is not rendered.

dokieli includes its own CSS and JS in spawnDokieli and that seems to render fine.

Perhaps need to re-trigger/load the stylesheets that's already part of the target resource's content.

csarven avatar Oct 17 '22 12:10 csarven

Can't reproduce this. One possibility is a bug in lower level base URI assignment, e.g., perhaps the fetched document is using relative path in link href. Closing.

csarven avatar Apr 23 '24 13:04 csarven

I can reproduce at e.g., https://dokie.li/?style=https://www.w3.org/DesignIssues/di.css . Everything generally looks fine, i.e., the selected stylesheet is added to head with link and all other link stylesheets are marked as alternate . The view isn't updating. When the view is changed through dokieli menu, e.g., to another stylesheet, and then back to the imported one, the view is updated.

csarven avatar Apr 23 '24 14:04 csarven