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

WordPress Trac noreply at wordpress.org
Sun May 10 00:09:47 UTC 2015


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

Comment (by azaozz):

 Yep, good for that to be added too. The problem here seems to be that the
 browsers treat the nodes inside dynamically updated inline SVGs same as
 HTML nodes. The nodeType is still === 1, so Twemoji happily processes
 them. That triggers an error as (for some reason) the inner SVG nodes
 className is an object, not a string.

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


More information about the wp-trac mailing list