Opened 8 years ago
Last modified 8 years ago
#16659 confirmed Bug
<embed> tag should not have a closing tag
Reported by: | Lyuba | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/embed states: "Must have a start tag, and must not have an end tag." However, CKEditor is adding a closing tag.
Steps to reproduce
- Go to http://ckeditor.com/demo#full
- Switch to source mode
- Replace source with
<embed src="movie.mov">
- Switch to WYSIWYG mode and back to source mode
- See the tag was closed as
<embed src="movie.mov"></embed>
Expected result
The tag should remain as pasted, without a closing tag
Actual result
A closing </embed> tag is being incorrectly added
Other details (browser, OS, CKEditor version, installed plugins)
Tested on Chrome, latest version
This is weird because
embed
is mentioned in empty tags list insidedtd
-Specification also says that end tag should be omitted - https://html.spec.whatwg.org/multipage/embedded-content.html#the-embed-element
I can see that closing embed tag has been added since version 4.0.