Page MenuHomePhabricator

Stripping out of comments for newly created tab page
Open, Needs TriagePublic

Description

While working on T200968 we noticed tabular data (and NOT map data) strip out all comments from the initial JSON.

Example:

  1. https://commons.wikimedia.org/w/index.php?title=Data:TEST2.tab&action=edit
  2. https://commons.wikimedia.org/w/index.php?title=Data:TEST2.map&action=edit

Expected: (assuming TEST2 doesn't exist) We should expect the default JSON, including the comments to appear in the preload.

Note: comments are not standard in JSON and we do want to strip them out on save.

Actual: For .map the preload includes comments, for tabular data it doesn't