Page MenuHomePhabricator

Enforce byteLimit for page title input on Special:MovePage
Closed, ResolvedPublic

Description

This was done in r87808 and reverted in r90257.

In order to do this properly:

  • Implement a callback ability in jQuery.fn.byteLimit
  • Re-do r87808 in mediawiki.special.movePage.js, but with a callback function this time filtering the input down to the "main" portion without the namespace prefix.
    • getting the name without namespace prefix is easy with mw.Title

Version: unspecified
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=34848
https://bugzilla.wikimedia.org/show_bug.cgi?id=48239

Details

Reference
bz29454

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:37 PM
bzimport set Reference to bz29454.

Removing dependency on bug 29455. As mentioned in bug 29455 comment 3.

It's probably best to create a dropdown menu in front of the title input. That way the title input can be limited to the maximum number of bytes for page_title without going through strange hoops to substract the namespace in different variations.

Then we'd still use JavaScript to enfoce the byteLimit (since HTML validation only supports character limit).