[wp-trac] [WordPress Trac] #32305: Emoji script is producing errors on pages with SVG content

WordPress Trac noreply at wordpress.org
Fri May 8 18:10:45 UTC 2015


#32305: Emoji script is producing errors on pages with SVG content
--------------------------+-------------------------
 Reporter:  martynasma    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.2.3
Component:  Formatting    |     Version:  4.2.2
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  javascript
--------------------------+-------------------------
Changes (by azaozz):

 * milestone:  Awaiting Review => 4.2.3


Comment:

 Looks like this can be fixed by doing:

 {{{
 if ( ! node || ( node.className && typeof node.className === 'string' &&
 node.className.indexOf( 'wp-exclude-emoji' ) !== -1 ) ) {
    continue;
 }
 }}}

 However, seems we shouldn't be looking inside SVGs in the first place. Not
 sure what will happen if we replace emoji chars inside SVGs.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32305#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list