[wp-trac] [WordPress Trac] #36712: Paragraph tags removed from div elements if script tag is present
WordPress Trac
noreply at wordpress.org
Thu Apr 28 23:51:34 UTC 2016
#36712: Paragraph tags removed from div elements if script tag is present
--------------------------+-----------------------------
Reporter: dankop | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version: 4.5.1
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
I honestly have no idea how to summarize this bug (therefore my lousy
title), so I'll best skip right to how to reproduce it.
- Get 10 paragraphs of text from Lorem Ipsum, and paste it to your visual
editor.
- Switch to the text editor and wrap the first 5 paragraphs in a div, and
wrap the last 5 in a second div.
- After the first paragraph in each div, simply write <script></script>
- Switch between Visual and Text editor, and watch the paragraphs in the
second div disappear.
For you convenience, you can copy the template from here, instead of
typing it manually: http://pastebin.com/PFYj885M
If the paragraphs don't disappear after the first switch from text to
visual, do it a couple of more times. I tried it on a fresh new install
using the Twenty Sixteen theme.
I encountered this bug while having a couple of Instagram embeds on the
same page, all of which loaded a script.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36712>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list