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

Adding HTML anchor to heading block creates a problem displaying block in app #2000

Closed
rachelmcr opened this issue Mar 11, 2020 · 1 comment · Fixed by WordPress/gutenberg#22604 or #2311
Assignees
Labels
Blocks [Type] Bug Something isn't working

Comments

@rachelmcr
Copy link
Member

rachelmcr commented Mar 11, 2020

Describe the bug

When I add an HTML anchor to my heading block on the web, the block in the app appears with the error message "Problem displaying block."

To Reproduce
Steps to reproduce the behavior:

  1. Create a new post on the web.
  2. Add a heading block.
  3. In the block settings, under Advanced, enter an HTML anchor.
  4. Save or publish the post.
  5. Open the same post in the app.

Expected behavior

I expect to see the heading block appear in the app with the same settings as on the web.

Screenshots

Web editor with HTML anchor settings:

Screenshot 2020-03-11 16 21 13

App editor:

Visual HTML
2020-03-11 16 22 14 2020-03-11 16 22 20

Smartphone (please complete the following information):

  • Device: iPhone XS
  • OS: iOS 13.3.1
  • Version: WPiOS 14.2 app store version
@rachelmcr rachelmcr added [Type] Bug Something isn't working Blocks labels Mar 11, 2020
@hypest
Copy link
Contributor

hypest commented Apr 6, 2020

Added the headinganchor string as anchor to the block from the web, and app logs show: 'Block validation: Expected attributes %o, instead saw %o.', [], [ [ 'id', 'headinganchor', true ] ] so, this is a block validation issue that is probably caused by not proper support/preservation of the anchor data. Let's tackle this sooner rather than later.

@ceyhun , can you have a look at this one? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blocks [Type] Bug Something isn't working
Projects
None yet
3 participants