[wp-trac] [WordPress Trac] #23801: Audio Shortcode: MP3s Display above plain text.

WordPress Trac noreply at wordpress.org
Sun Mar 17 08:46:59 UTC 2013


#23801: Audio Shortcode: MP3s Display above plain text.
--------------------------+------------------------------
 Reporter:  mfields       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Shortcodes    |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by mfields):

 I did a bit more testing and it turns out that this only happens in
 Firefox. The following code seems to be the culprit here (line 1140 of wp-
 includes/js/mediaelement/mediaelement-and-player.js)

 {{{
 // check for placement inside a <p> tag (sometimes WYSIWYG editors do
 this)
 node = htmlMediaElement.parentNode;
 while (node !== null && node.tagName.toLowerCase() != 'body') {
         if (node.parentNode.tagName.toLowerCase() == 'p') {
                 node.parentNode.parentNode.insertBefore(node,
 node.parentNode);
                 break;
         }
         node = node.parentNode;
 }
 }}}

 Is this safe to remove?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23801#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list