File: htmlcomments.md

package info (click to toggle)
ckeditor 4.16.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 258,804 kB
  • sloc: javascript: 239,590; sh: 184; makefile: 64; python: 37; php: 15; xml: 5
file content (30 lines) | stat: -rw-r--r-- 807 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
@bender-tags: bug, 2294, 2380, 4.11.0
@bender-ui: collapsed
@bender-ckeditor-plugins: wysiwygarea, toolbar, basicstyles, sourcearea, htmlwriter

1. Open the console.
1. Focus the editor.
1. Select all the contents (`ctrl/cmd+a`).
1. Click the "Bold" button in the toolbar.

	### Expected

	No errors are thrown in the console.

	### Actual

	JS error is thrown, like `Uncaught TypeError: Cannot read property 'getParents' of null`

1. Click the "Source" button.

	### Expected

	HTML comments that are ouside of paragraphs, are not wrapped with additional `p` or `strong` tags.

	### Actual

	Additional markup is created around HTML comments.

### Notes

[Edge will throw `Permission denied` exception](https://github.com/ckeditor/ckeditor4/issues/2035), this particular error is not related to this test.