https://bugzilla.wikimedia.org/show_bug.cgi?id=47057

       Web browser: ---
            Bug ID: 47057
           Summary: built-in jquery.placeholder causes the placeholder
                    string to be returned using .val()
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: JavaScript
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
            Blocks: 47039
    Classification: Unclassified
   Mobile Platform: ---

jquery.placeholder is applied to all input elements with a placeholder class.

In IE, this causes .val() to return the placeholder string when it's supposed
to be empty. It causes bug 47039 in Translate and may cause other issues.

As an experiment, I tried replacing the core jquery.placeholder.js with the
plugin of the same name from here:
https://github.com/mathiasbynens/jquery-placeholder 

Everything just worked, including the placeholder in the search box.

Of course, it needs more testing, and the whole thing may also have some other
solution.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to