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

html Order tag is not supporting by Custom HTML block #16110

Closed
jadhavravindra opened this issue Jun 12, 2019 · 6 comments
Closed

html Order tag is not supporting by Custom HTML block #16110

jadhavravindra opened this issue Jun 12, 2019 · 6 comments
Labels
[Block] HTML Affects the the HTML Block [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed

Comments

@jadhavravindra
Copy link

Describe the bug
When the user tried to display the HTML order list with the help of Custom HTML block, then it will not display the order list with the numbers.

To reproduce
Steps to reproduce the issue:
1.Go to gutenberg editor
2. add Custom HTML block
3.insert below code into the HTML block

 <ol>
<ul>
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
<ul>
</ol>

4.publish it and View the page

Expected behavior
Order numbering should be displayed.
Example:
1.Coffee
2.Tea
3.Milk

Screenshots
https://www.screencast.com/t/wGMy0eNpSQ

@swissspidy
Copy link
Member

That's not an ordered list.

Correct would be:

<ol>
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ol>

So your HTML is wrong and the browser tries to fix it, only keeping the ul tags and removing the ol tags.

@swissspidy swissspidy added [Block] HTML Affects the the HTML Block [Type] Help Request Help with setup, implementation, or "How do I?" questions. labels Jun 12, 2019
@jadhavravindra
Copy link
Author

jadhavravindra commented Jun 12, 2019

Yes I tried both ways,,

<ol>
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ol>

that also not working with custom html block
Please look here : https://www.screencast.com/t/wGMy0eNpSQ

@swissspidy
Copy link
Member

Looks like there's no padding for ul and ol in thee HTML block's preview iframe. That iframe exists as a sandbox. In the frontend it looks good though.

Which is why this is essentially a duplicate of #9129 (outside CSS is not applied to the editor).

Also, thanks for the video, but I cannot watch it without flash player 🙂

@swissspidy swissspidy added [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed and removed [Type] Help Request Help with setup, implementation, or "How do I?" questions. labels Jun 12, 2019
@jadhavravindra
Copy link
Author

Okay, I have updated the video. You can check below one now for more details.
2019-06-12_15-09-09!

@swissspidy
Copy link
Member

Awesome, thanks!

Definitely a duplicate of #9129 in that case. Please follow that issue for any progress.

As I mentioned, that whole HTML block preview in the editor is in a sandboxed iframe, so it's not as trivial as it seems to add the necessary styling there.

@jadhavravindra
Copy link
Author

Okay. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] HTML Affects the the HTML Block [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed
Projects
None yet
Development

No branches or pull requests

2 participants