question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HTML5 tags <details> wrapped by <p> tag

See original GitHub issue

hello,

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>&nbsp;</p>
<p><details> <summary>test details</summary>
<p>test</p>
</details></p>
<p>&nbsp;</p>

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
spockecommented, May 9, 2018

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.

0reactions
chrispcbcommented, May 9, 2018

It’s ok. Good job !

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found