Skip to content

Regression in 5.1.32 #342

Closed
Closed
@serjepatoff

Description

@serjepatoff

Hello,

We have found a regression that shows up when processing some htmls. When using version 5.1.32 (commit 9942856) content is corrupted. In ealier version 5.1.14 (commit 7e69ceb) everything is OK.

Options used are as follows:

tidyOptSetBool(tdoc, TidyDropEmptyElems, no);
tidyOptSetInt(tdoc, TidyWrapLen, 0);
tidyOptSetBool(tdoc, TidyXhtmlOut, yes);
tidyOptSetBool(tdoc, TidyMark, no);
tidyOptSetInt(tdoc, TidyDoctypeMode, TidyDoctypeUser);
tidyOptSetBool(tdoc, TidyNumEntities, yes);
tidySetCharEncoding(tdoc, "utf8");
tidyOptSetBool(tdoc, TidyForceOutput, yes);
tidyOptSetBool(tdoc, TidyShowWarnings, no);
tidyOptSetInt(tdoc, TidyShowErrors, 0);

There are 2 html content samples in attachment. For each sample there are
(1) original html,
(2) html after tidying with 5.1.14,
(3) html after tidying with 5.1.32,
(4) screenshot of content after tidying with 5.1.14 in iOS UIWebView,
(5) screenshot of content after tidying with 5.1.32 in iOS UIWebView.

Here is tree listing of files in attachment, hope that naming would be self-explanatory to you.

.
├── html
│   ├── Content1_original
│   ├── Content1_after_5_1_14
│   ├── Content1_after_5_1_32
│   ├── Content2_original
│   ├── Content2_after_5_1_14
│   └── Content2_after_5_1_32
└── png
    ├── Content1_after_5_1_14.png
    ├── Content2_after_5_1_14.png
    ├── Content1_after_5_1_32.png
    └── Content2_after_5_1_32.png

Attachment.zip

Thank you very much for your attention.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions