[wp-trac] [WordPress Trac] #40640: code changed between visual and text views

WordPress Trac noreply at wordpress.org
Tue May 2 18:58:24 UTC 2017


#40640: code changed between visual and text views
--------------------------+-----------------------------
 Reporter:  sninad        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:  4.7.4
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 I open a blog post with this input field in TEXT view and see:

 <input style="width: 100%; display: inline-block !important; height: 40px;
 margin-bottom: 8px; box-sizing: border-box;" name="FNAME" required=""
 type="text" value="" placeholder="Type your First Name here..."
 onkeyup="document.getElementById('HELP').value = 'Contact Us';" />

 Note: the onkeyup element is to detect robot signups to my site.

 I go to VISUAL view and then go back to TEXT view and get the following:

 <input style="width: 100%; display: inline-block !important; height: 40px;
 margin-bottom: 8px; box-sizing: border-box;" name="FNAME" required=""
 type="text" value="" placeholder="Type your First Name here..." />

 The onkeyup action is removed by the editor.

 So, without making any changes, I VIEW PAGE, and VIEW SOURCE and the
 onkeyup action is there.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40640>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list