Skip to content

Inline svg block corrupts editor html #307

@Lovor01

Description

@Lovor01

Describe the bug

SVG inline block, when used in header outputs weird paragraph html artefact (wraps block's above paragraph in another paragraph). This in turn makes block corrupted.

Steps to Reproduce

  1. open site editor and header
  2. Insert some content above (group, paragraph inside, group below)
  3. In lower group add svg inline blocks and inspect frontend HTML. See if it is correct (look at group above).
  4. Reload and see if block corruption appears in editor

Screenshots, screen recording, code snippet

No response

Environment information

No response

WordPress information

WP 6.9.1

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededtype:bugSomething isn't working.

    Projects

    Status

    To Do

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions