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

Gutenberg wraps Div->A->Div with P #11038

Closed
ludenb opened this issue Oct 25, 2018 · 2 comments
Closed

Gutenberg wraps Div->A->Div with P #11038

ludenb opened this issue Oct 25, 2018 · 2 comments

Comments

@ludenb
Copy link

ludenb commented Oct 25, 2018

After Gutenberg 4.1 was released, it wraps <div> containig <a> containing <div> with <p> and duplicates <a> without <div> into one more <p>. There is no such a problem in Gutenberg 4.0

To Reproduce

  1. Create a Custom HTML block with this HTML: <div><a style="height:50px;width: 100px;background: #ddd;display: block;border-radius: 10px;"><div>Test link</div></a></div>
  2. Save and view the page
  3. You will see
    image

Expected behavior
image

Desktop (please complete the following information):

  • OS: Win7
  • Browser Chrome
  • Version 69.0.3497.100
@collinanderson
Copy link

collinanderson commented Oct 25, 2018

I'm also having an issue with custom html getting wrapped in <p>s that just started this morning with 4.1.0.

my post content has: (simplified)

<!-- wp:html -->
<a>
<div>
<h2></h2>
<p><span></span></p>
</div>
</a>
<!-- /wp:html -->

i'm getting this output:

<p><a></p>
<div>
<h2></h2>
<p><span></span></p>
</div>
<p></a></p>

@youknowriad
Copy link
Contributor

It should be fixed by #11050

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

3 participants