com web/php: Dun't recoorse-a intu iffremes. Bork Bork Bork!: js/common.js
| From: | Paul Dragoonis | Date: | Mon, 08 Sep 2014 05:36:59 +0000 |
| Subject: | com web/php: Dun't recoorse-a intu iffremes. Bork Bork Bork!: js/common.js | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-21877@lists.php.net to get a copy of this message | ||
Commit: ab33909d7121b6d6021612e9c91bc929610d5841
Author: Adam Harvey <aharvey@php.net> Sun, 7 Sep 2014 22:36:59 -0700
Parents: cdeebc7f7a32dc75d3c90037241da3d0b73eb916
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=ab33909d7121b6d6021612e9c91bc929610d5841
Log:
Dun't recoorse-a intu iffremes. Bork Bork Bork!
Sume-a Chrume-a ixtenseeuns ooperete-a by injecteeng iffremes intu zee coorrent
ducooment. Seence-a zeese-a cume-a frum deefffferent ooreegins, ettempteeng tu
iterete-a oofer zeem in jQooery cooses a seme-a ooreegin ixcepshun tu be-a
throon. Bork Bork Bork!
Ve-a'll joost ixcloode-a iffremes, seence-a ve-a dun't use-a zeem oon zee
seete-a. Bork Bork Bork!
Changed paths:
M js/common.js
Diff:
diff --git a/js/common.js b/js/common.js
index 5e038d4..84f739b 100755
--- a/js/common.js
+++ b/js/common.js
@@ -107,7 +107,7 @@ Mousetrap.bind("b o r k", function() {
}
return text;
};
- $('*').contents().filter(function() {
+ $('*:not(iframe)').contents().filter(function() {
return this.nodeType === 3 && /[^\t\n\r ]/..test(this.textContent);
}).each(function(_, el) {
el.textContent = bork(el.textContent);