Open asolntsev opened 9 months ago
Answer from Peter Brand:
I'm afraid that won't work in general. FS is a pretty complete static implementation of CSS 2.1. It does not support JavaScript or the many, many features subsequently added to CSS and HTML.
In order to limit the number of external dependencies, FS only supports XML input out of the box, but it provides the facilities to use your own parser as long as the output of that parser is a W3C Document value.
See also the JSoup example provided in #299. A similar technique would work with https://github.com/HtmlUnit/htmlunit-neko or the validator.nu HTML5 parser.
I'm afraid the first paragraph above still applies though. Sites that use JavaScript, CSS Flexbox, CSS Grid, etc. will still be pretty broken. There is no easy fix there.
Reported by (Ezhil](mailto:ezhilre@gmail.com)
Team - I am trying to create a PDF using page url. But I am getting an error saying that
It looks like
renderer.setDocument(urlcheck)
check whether the URL has proper start and end HTML tag. Is there any we can skip this validation ?