Summary: Wrong removal of spaces in javascript
           Product: MediaWiki
           Version: wikimedia-deployment
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: Normal
         Component: Resource Loader


Resource Loader seems to wrongly remove spaces in javascript code in some cases
using debug=false. With debug=true the code remains untouched, so no problem

Test case. The original code is located under [1]. The code compressed by
Resource Loader is located under [2]. There is the following line in the first
 InterwikiLinks[i].className += " FA"
after the compressing it appears to be:
 InterwikiLinks[i].className += "FA" (note the dropped space)

Another case. 
 InterwikiLinks[i].title = "Гэта абраны артыкул на іншай мове.";
after the compressing appears to be:
 InterwikiLinks[i].title = "Гэтаабраныартыкулнаіншаймове."; (all the spaces are

The original code is the valid javascript code, but looks like Resource Loader
lost the quote-sign balance and started compressing string literals.


Configure bugmail:
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Wikibugs-l mailing list

Reply via email to