4.8 Text Widget strips onmouseover,onmouseout events from img tags
-
I created a new clean installation of WordPress 4.7.5 and used the twentysixteen theme.
I created a text widget containing:
<img name="pmbtn_lc" src="https://klaroty.com/clients/48test/wp-content/uploads/2017/06/lc_btn_focus.png" onmouseover="document['pmbtn_lc'].src = 'https://klaroty.com/clients/48test/wp-content/uploads/2017/06/lc_btn_normal.png'" onmouseout="document['pmbtn_lc'].src = 'https://klaroty.com/clients/48test/wp-content/uploads/2017/06/lc_btn_focus.png'" onclick="window.location='https://klaroty.com/clients/48test/'" style="cursor:pointer;margin:0;padding:0;width:58px">
After updating to 4.8 the text widget contents:
NOTE: I preplaced the ‘<‘ and ‘>’ wit GT and LT to make it readable here:
LTimg style="cursor: pointer; margin: 0; padding: 0; width: 58px;" src="https://klaroty.com/clients/48test/wp-content/uploads/2017/06/lc_btn_focus.png" name="pmbtn_lc" /GT
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘4.8 Text Widget strips onmouseover,onmouseout events from img tags’ is closed to new replies.