From 5f4b2877f90802e0e68bb493e9df076aed4479ff Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Thu, 2 Jun 2016 03:08:02 +0000 Subject: [PATCH] Editor wpLink: swap the order of `innerText` and `textContent` to avoid getting styled text in IE. Props dougwollison. Fixes #36783. git-svn-id: https://develop.svn.wordpress.org/trunk@37621 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/wplink.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/js/wplink.js b/src/wp-includes/js/wplink.js index 39925e5d25..d4511369b1 100644 --- a/src/wp-includes/js/wplink.js +++ b/src/wp-includes/js/wplink.js @@ -228,7 +228,7 @@ var wpLink; onlyText = this.hasSelectedText( linkNode ); if ( linkNode ) { - linkText = linkNode.innerText || linkNode.textContent; + linkText = linkNode.textContent || linkNode.innerText; href = editor.dom.getAttrib( linkNode, 'href' ); if ( ! $.trim( linkText ) ) {