Skip to content

HTML elements are reordered. #2267

@Bogdan740

Description

@Bogdan740

I've uploaded an example.txt file that contains the html example. Unfortunately I couldn't get the example to be any smaller, so I apologise for the largeish html example.

When rendering the original html file in a HTML renderer you get:

TEXT 1

DKLASJD:  DASDSA ABT  31321 MT /  LSMGO  ABT dsada MT
TEXT 2
TEXT 3

Once you parse the HTML with Jsoup.parse(html) and render the new html with a renderer once again you get:

TEXT 1

TEXT 3
DKLASJD:  DASDSA ABT  31321 MT /  LSMGO  ABT dsada MT
TEXT 2

Notice how the text has been re-ordered. One thing that may help in investigation is that when you remove all of the inline style attributes, this issue no longer occurs and the text is in the correct order after parsing with Jsoup.parse().

Is this expected behaviour?

example.txt

Metadata

Metadata

Assignees

Labels

fixedAn {bug|improvement} that has been {fixed|implemented}

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions