-
Notifications
You must be signed in to change notification settings - Fork 359
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
W3CDom::fromJsoup breaks inputs in HTML forms #445
Comments
Hi @testinfected, I suspect this could be an issue with namespaces. Are you able to try with a document that specifies no namespace? Something like: <html>
<body>
<form>
<input type="text" name="firstName">
</form>
</body>
</html> |
Hi @danfickle We don't have any namespace in our document. It's a plain HTML 5 document.
We have the same issue with the example at https://github.com/danfickle/openhtmltopdf/wiki/Form-Controls Cheers, |
Thanks @testinfected, I've worked around the behavior of Jsoup converter now. It took a lot of debugging to find the root cause. |
Thanks @danfickle, that's great news! |
Hi there,
Previously we were using the now removed DOMContent (in openhtmltopdf-jsoup-dom-converter) to convert HTML 5 using jsoup to a w3c DOM representation.
We've upgraded to 1.0.1 and use the latest jsoup as recommended in the integration guide, i.e.
Unfortunately it breaks our form inputs, which no longer appear in the generated pdf. It works with HTML tags with a corresponding closing tag (e.g.
textarea
), but apparently not with other tags.Works fine with 1.0.1 and the old
openhtmltopdf-jsoup-dom-converter
The text was updated successfully, but these errors were encountered: