HTML5 tags <details> wrapped by <p> tag
See original GitHub issuehello,
Tested on your home page:
- switch to source code (tools ->source code)
- add the end, add this code:
<details>
<summary>Titre details</summary>
<p>hidden texte</p>
</details>
- click “ok”
- switch to source code again (tools ->source code)
- Wrong Result:
<p> </p>
<p><details> <summary>test details</summary>
<p>test</p>
</details></p>
<p> </p>
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
<p>: The Paragraph element - HTML - MDN Web Docs - Mozilla
Paragraphs are block-level elements, and notably will automatically close if another block-level element is parsed before the closing </p> tag.
Read more >HTML p Tag Reference and Examples - FactorPad
The html paragraph tag or p tag creates a paragraph element or block of text and is one of the most commonly used...
Read more >P elements and wrapping paragraphs with main tags
Just make two p elements out of which one contain the given paragraph and surround it with a main opening and closing tag…...
Read more >Why does the W3C advise wrapping input elements in <p> tags?
A p element isn't the only way to mark-up a form. If a matrix of data is being added/edited, it's semantically valid to...
Read more >Accessibility | HTML Best Practices | Content - Hawkes Learning
The paragraph is the basic text structure element used in HTML. Almost all text (tables and headers being exceptions) will need to be...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We added a fix for this in 4.7.12 so you could try that out. These elements are now handled as block element containers. We don’t have any special editing on them so they are just retained as is at the moment.
It’s ok. Good job !