Skip to content

The document with just <script> or <style> element becomes empty #11247

Closed
@maxbarnas

Description

📝 Provide detailed reproduction steps (if any)

In ckeditor5-html-support/tests/manual/ghs-all-features.html:

  1. Set in Source Editing mode (whitespace before or after does not matter):
<script>foo</script>

or

<style>foo</style>
  1. Switch to regular mode and then back to source editing mode (or call editor.getData()).

✔️ Expected result

Same data as set.

❌ Actual result

Empty string.

Activity

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

Metadata

Assignees

Labels

package:enginepackage:html-supportrelease:blockerThis issue blocks the upcoming release (is critical).squad: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