[wp-trac] [WordPress Trac] #19440: JavaScript errors in l10n.js

WordPress Trac wp-trac at lists.automattic.com
Sun Dec 4 09:03:53 UTC 2011


#19440: JavaScript errors in l10n.js
--------------------------+-----------------------------
 Reporter:  szotsaki      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Validation    |    Version:  3.2.1
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 In the minified wp-includes/js/l10n.js there are some JavaScript errors,
 which prevent to work correctly with plugins like W3 Total Cache.

 I marked the missing semicolons with XXX in the code (5 in total):

 {{{
 function convertEntities(b) {
         var d, a;
         d = function(c) {
                 if(/&[^;]+;/.test(c)) {
                         var f = document.createElement("div");
                         f.innerHTML = c;
                         return !f.firstChild ? c : f.firstChild.nodeValue
 XXX
                 }
                 return c XXX
         };
         if( typeof b === "string") {
                 return d(b) XXX
         } else {
                 if( typeof b === "object") {
                         for(a in b) {
                                 if( typeof b[a] === "string") {
                                         b[a] = d(b[a]) XXX
                                 }
                         }
                 }
         }
         return b XXX
 }
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19440>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list