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
Referring to page.document
breaks non-HTML file
#163
Comments
Mmm, good point. |
Nice and handy. I mean, if the content of the page is like I think we should use I use this implementation to solve the similar issue for a time being, but it's ugly and I don't think it's a good idea. import { nodesFromString } from "lume/deps/dom.ts";
function createDocumentFragment(html: string) {
const document = nodesFromString("");
document.innerHTML = html;
return document;
} |
I just committed a change to fix this issue (c1666a7#diff-1efcf4bbdf6611ee325c25c2f2581b150825745bc0734d67dbe7d03adb003eb4) Regarding to document fragments, yes it's not already implemented. But what's your specific use case? Why do you want pages without html/body tags? |
Nope, I don't have particular case for document without html/body tags. Someone want to provide a fragment of document for embedding purpose? IDK, it's just imagination. |
I understand. A page represents a complete html page of the site, so I don't think this is a common casuistry. I'm closing this. Thanks!! |
This is a quick bug report.
Reproduction procedure
_config.ts
as:test.css
as:lume
to get_site/test.css
as:The text was updated successfully, but these errors were encountered: