diff --git a/services/dynamic/dynamic-xml.spec.js b/services/dynamic/dynamic-xml.spec.js index 76d471c5f9e99..c3f1b64c91ab3 100644 --- a/services/dynamic/dynamic-xml.spec.js +++ b/services/dynamic/dynamic-xml.spec.js @@ -156,6 +156,16 @@ describe('DynamicXml', function () { }).expect({ values: ['Herman Melville - Moby-Dick'], }) + + // lowercase doctype + // https://github.com/badges/shields/issues/10827 + given({ + pathExpression: '//h1[1]', + buffer: exampleHtml.replace('', ''), + contentType: 'text/html', + }).expect({ + values: ['Herman Melville - Moby-Dick'], + }) }) test(DynamicXml.prototype.getmimeType, () => {