• Robert Knight's avatar
    Fix decoding of the query section in "#annotations" fragments. · d0e4adac
    Robert Knight authored
    Use `decodeURIComponent` instead of `decodeURI` because
    `decodeURIComponent` decodes reserved characters (eg. ":", "/") whereas
    `decodeURI` does not.
    
    Avoid stubbing decodeURIComponent() in the tests and instead just use a
    malformed escape sequence which triggers an actual URIError when
    decoding.
    d0e4adac
settings.js 3.92 KB