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

[Issue Report] Blocks containing HTML5 elements display errors and do not render when editing an article #307

Closed
kurikimuchi opened this issue Mar 19, 2024 · 1 comment

Comments

@kurikimuchi
Copy link

Report an unexpected error.


Issue description:

Since updating the plugin to v3.6, there has been a problem with article editing.
If "editor.php" contains HTML5 tags, it will not be rendered only when editing.
This is probably because the "loadHTML" function does not support HTML5. (#303)

To Reproduce

  1. create a new lazy-blocks block
  2. create a new "editor.php" template file
  3. write HTML5 elements in "editor.php" (e.g. <nav>,<section>,<figure>...)
  4. insert block in article
  5. "Error loading block preview" is displayed and does not render

Warning Message

Error loading block preview: Please ensure that the output is a valid HTML structure.

Version:

Screenshot:

image

Example Code:

[ editor.php ]

<div>
  <nav></nav>
</div>

Best Regards.

@kurikimuchi kurikimuchi changed the title Blocks containing HTML5 elements display errors and do not render when editing an article [Issue Report] Blocks containing HTML5 elements display errors and do not render when editing an article Mar 19, 2024
@nk-o nk-o closed this as completed in 368d86b Mar 21, 2024
@nk-o
Copy link
Collaborator

nk-o commented Mar 21, 2024

Thank you for info, fixed in v3.6.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants