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

<div> is stripped out of the <dd> element #17115

Open
Mgsy opened this issue Sep 18, 2024 · 0 comments
Open

<div> is stripped out of the <dd> element #17115

Mgsy opened this issue Sep 18, 2024 · 0 comments
Labels
package:html-support support:2 An issue reported by a commercially licensed client. type:bug This issue reports a buggy (incorrect) behavior.

Comments

@Mgsy
Copy link
Member

Mgsy commented Sep 18, 2024

📝 Provide detailed reproduction steps (if any)

  1. Go to 
  2. Set the following content:
<dl>
	<dt><p>Question text</p></dt>
	<dd><p>Answer text starts here</p>
		<div>
			<p>Paragraph inside div</p>
			div content
		</div>
	</dd>
</dl>

✔️ Expected result

The markup is preserved.

❌ Actual result

<div> is stripped out and its paragraph is moved outside of the <dl> element:

<dl>
    <dt>
        <p>
            Question text
        </p>
    </dt>
    <dd>
        <p>
            Answer text starts here
        </p>
    </dd>
</dl>
<p>
    Paragraph inside div
</p>

📃 Other details

The dd element can contain the flow content, so it should preserve <div>.


If you'd like to see this fixed sooner, add a 👍 reaction to this post.

@Mgsy Mgsy added type:bug This issue reports a buggy (incorrect) behavior. support:2 An issue reported by a commercially licensed client. package:html-support labels Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:html-support support:2 An issue reported by a commercially licensed client. type:bug This issue reports a buggy (incorrect) behavior.
Projects
None yet
Development

No branches or pull requests

1 participant