Skip to content

Commit

Permalink
Fix the profile quoting in our content type strings
Browse files Browse the repository at this point in the history
Occasionally a wild double quote will wander into my supply of
erstwhile domesticated double quotes.  The wild ones cause all
sorts of trouble, jumping around and knocking things over.  In
this case, the wild double quote went for a walkabout to the end
of its line.  We're lucky it didn't fall clear off the edge.

Corral the wild double quote and replace it with a domesticated
double quote who has promised me it won't wander off.

Follow up to Ie875223014941d6eeb86c4d054e1142aacbf3254.

*In addition*, remove the `charset` parameter from the Content-Type,
since according to RFC4627 UTF-8 encoding is already the default for
application/json.

Change-Id: Ib9759b7254e15491068f5ae3449d48d30e3d9648
  • Loading branch information
cscott committed Aug 25, 2015
1 parent 759916f commit c3b037b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mediawiki.DOMPostProcessor.js
Expand Up @@ -344,7 +344,7 @@ DOMPostProcessor.prototype.addMetaData = function(document) {
var script = document.createElement("script");
DU.addAttributes(script, {
id: "mw-data-parsoid",
type: 'application/json;profile="mediawiki.org/specs/data-parsoid/0.0.1;charset=utf-8"',
type: 'application/json;profile="mediawiki.org/specs/data-parsoid/0.0.1"',
});
script.appendChild(document.createTextNode(dp));
document.head.appendChild(script);
Expand Down

0 comments on commit c3b037b

Please sign in to comment.