[wp-trac] [WordPress Trac] #34640: Twemoji fallback doesn't kick in on subsequent DOM mutations
WordPress Trac
noreply at wordpress.org
Tue Nov 10 00:55:27 UTC 2015
#34640: Twemoji fallback doesn't kick in on subsequent DOM mutations
--------------------------+-----------------------------
Reporter: rmccue | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Fun bug I found and tracked down with @pento:
1. Set an element's content via innerHTML to an emoji character
2. Observe the content has been replaced with Twemoji correctly
3. Set the element's content to the exact same value again
4. Observe the content has been ''not'' replaced
You can try this on any page our Twemoji replacement is loaded on:
{{{
window.setInterval(function () { document.querySelector('div').innerHTML =
'\ud83d\ude3d'; }, 500);
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34640>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list