You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A publishing tool that dynamically creates IDs based on the value of that heading, id="exports"
A browser takes this heading and creates a global variable, window.exports returns the HTML element
The line typeof exports !== 'undefined' ? exports : Hogan now returns an HTML element and Hogan doesn't start properly
varHogan={};(function(Hogan){// The value of Hogan at this point is the HTML element// <h2 id="exports">Exports</h2>})(typeofexports!=='undefined' ? exports : Hogan);
Consider the following:
id="exports"
window.exports
returns the HTML elementtypeof exports !== 'undefined' ? exports : Hogan
now returns an HTML element and Hogan doesn't start properlyThis is what happened on GOV.UK on articles with content that refers to "Exports". This was one of the affected pages: https://www.gov.uk/government/publications/notice-143-a-guide-for-international-post-users/notice-143-a-guide-for-international-post-users#exports
Here's the hot fix that was applied:
alphagov/shared_mustache#8
The text was updated successfully, but these errors were encountered: