Skip to content

Line break characters around <script> and <style> should be ignored #11248

Closed
@maxbarnas

Description

📝 Provide detailed reproduction steps (if any)

  1. Set in Source Editing mode in ckeditor5-html-support/tests/manual/ghs-all-features.html:
<p>
    x
</p>
<script>a</script>
<style>a</style>
<p>
    x
</p>
  1. Retrieve the data back.

✔️ Expected result

Output is the same as the input.

❌ Actual result

Notice the extra paragraph with &nbsp; and <style> inside it:

<p>x</p><script>a</script><p>&nbsp;<style>a</style></p><p>x</p>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

package:enginesquad:coreIssue to be handled by the Core team.type:bugThis issue reports a buggy (incorrect) behavior.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions