Skip to content
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

#3812 - BUG - Content displayed twice #3828

Merged
merged 2 commits into from
Oct 24, 2024

Conversation

andrepestana-aot
Copy link
Collaborator

@andrepestana-aot andrepestana-aot commented Oct 23, 2024

The issue happened because the markup in the HTML component is invalid. The "p" tag could not be used with children elements like: address, article, aside, blockquote, details, dialog, div, dl, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, hr, main, menu, nav, ol, p, pre, search, section, table, or ul.

Form.io changed its default parent tag from p to div: formio/formio.js#5792

Similar issue and developer explanation/recommendation: formio/formio.js#5598 (comment)

Found some other issues not reported in the ticket as this one:
image

  • Checked all form.io forms;
  • Changed the "p" tag to "div" when the component had invalid children tags for paragraph;
  • Changed some other invalid HTML found when doing the check.

@andrepestana-aot andrepestana-aot self-assigned this Oct 23, 2024
@andrepestana-aot andrepestana-aot added the Form.io Form IO definitions changed. label Oct 23, 2024
@@ -357,7 +357,7 @@
"properties": {},
"allowMultipleMasks": false,
"addons": [],
"tag": "p",
"tag": "li",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one didn't have any issue with the rendering but I changed to make it a valid HTML.

@andrepestana-aot andrepestana-aot marked this pull request as ready for review October 24, 2024 16:18
@andrepestana-aot andrepestana-aot added the Bug Something isn't working label Oct 24, 2024
@lewischen-aot lewischen-aot self-requested a review October 24, 2024 16:24
Copy link
Collaborator

@lewischen-aot lewischen-aot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great to me 👍 Great work @andrepestana-aot

@andrewsignori-aot andrewsignori-aot self-requested a review October 24, 2024 20:30
Copy link
Collaborator

@andrewsignori-aot andrewsignori-aot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great changes and investigation, looks good 👍

@andrepestana-aot andrepestana-aot added this pull request to the merge queue Oct 24, 2024
Merged via the queue into main with commit 827755c Oct 24, 2024
14 checks passed
Copy link

Copy link

Backend Unit Tests Coverage Report

Totals Coverage
Statements: 22.56% ( 3662 / 16233 )
Methods: 10.16% ( 205 / 2018 )
Lines: 25.96% ( 3181 / 12255 )
Branches: 14.08% ( 276 / 1960 )

Copy link

E2E Workflow Workers Coverage Report

Totals Coverage
Statements: 58.64% ( 509 / 868 )
Methods: 52.88% ( 55 / 104 )
Lines: 62.27% ( 411 / 660 )
Branches: 41.35% ( 43 / 104 )

Copy link

E2E Queue Consumers Coverage Report

Totals Coverage
Statements: 83.81% ( 1170 / 1396 )
Methods: 83.94% ( 115 / 137 )
Lines: 84.74% ( 994 / 1173 )
Branches: 70.93% ( 61 / 86 )

Copy link

E2E SIMS API Coverage Report

Totals Coverage
Statements: 66.01% ( 5571 / 8439 )
Methods: 63.3% ( 683 / 1079 )
Lines: 70.12% ( 4401 / 6276 )
Branches: 44.93% ( 487 / 1084 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Form.io Form IO definitions changed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants