-
-
Notifications
You must be signed in to change notification settings - Fork 984
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Namespaced elements of XHTML and CSS are not correctly handled #1513
Comments
Thank you very much for the detailed report! It looks like the proper way to fix this issue would be to always use a separate |
WebScrapBook normally saves each When saving as single HTML, WebScrapBook recursively converts the
P.S.: As a developer I really hate all the CSS related things... |
Sorry, I had forgotten that webscrapbook saves resources separately. In fact, I do more or less the same thing (I guess) in SingleFile when saving the page in self-extracting format. The only major difference is that I use Blob URIs. I'm still studying on this problem and I can confirm that it's probably going to take me a while to fix it because of the refactoring. Anyway, I think it should be doable. For now, I'm just resting my brain to get back to it later. I completely agree with you about CSS. For example, I'm not a fan of the fact that the URL passed to the |
It is unfortunate that there is no available standard-compliant CSS parser, making many things difficult to handle. Although browsers support CSSOM, it's not enough to retrieve details of a apecific cssText in a rule, such as referenced CSS variables. The closest one so far is parse-css. Unfortunately it's still buggy and needs improvement, and the maitainer still haven't review my patch PRs. |
Describe the bug
Namespaced elements of XHTML and CSS are not correctly handled.
To Reproduce
Steps to reproduce the behavior:
element.xhtml
element-import.css
Expected behavior
elem-6
is not correctly namespaced (should be underhttp://www.w3.org/1999/xhtml
instead ofhttp://example.com/myns
).Environment
The text was updated successfully, but these errors were encountered: