WordPress.org

Make WordPress Core

Changeset 37621


Ignore:
Timestamp:
06/02/16 03:08:02 (11 months ago)
Author:
azaozz
Message:

Editor wpLink: swap the order of innerText and textContent to avoid getting styled text in IE.

Props dougwollison.
Fixes #36783.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/wplink.js

    r37154 r37621  
    229229 
    230230            if ( linkNode ) { 
    231                 linkText = linkNode.innerText || linkNode.textContent; 
     231                linkText = linkNode.textContent || linkNode.innerText; 
    232232                href = editor.dom.getAttrib( linkNode, 'href' ); 
    233233 
Note: See TracChangeset for help on using the changeset viewer.