[wp-trac] [WordPress Trac] #32157: Emoji script: infinite loop when image does not load
WordPress Trac
noreply at wordpress.org
Tue Apr 28 02:29:32 UTC 2015
#32157: Emoji script: infinite loop when image does not load
--------------------------+-------------------
Reporter: iseulde | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.2.2
Component: Formatting | Version: 4.2
Severity: normal | Keywords:
Focuses: |
--------------------------+-------------------
Twemoji replaces images that do not load with the original text, which is
detected by our mutation observer that parses any added text nodes. If the
image never loads there will be an infinite loop.
To fix this we’ll have to look at the removed nodes in the mutation record
and return if twemoji is replacing an image with the text in the alt
attribute.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32157>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list