Skip to content

W3CDom::fromJsoup breaks inputs in HTML forms #445

Closed
@testinfected

Description

@testinfected

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.

...
var doc = Jsoup.parse(html);
var dom = new W3CDom().fromJsoup(doc);
...

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions