diff --git a/src/Parser.js b/src/Parser.js index 0a44230..e283df8 100644 --- a/src/Parser.js +++ b/src/Parser.js @@ -32,7 +32,10 @@ Ext.define('Proxmox.Markdown', { } else if ((name === 'href' || name === 'src') && !_isHTTPLike(value)) { try { let url = new URL(value, window.location.origin); - if (_isHTTPLike(url.protocol) || (node.tagName === 'img' && url.protocol === 'data:')) { + if ( + _isHTTPLike(url.protocol) || + (node.tagName.toLowerCase() === 'img' && url.protocol.toLowerCase() === 'data:') + ) { node.attributes[i].value = url.href; } else { node.attributes.removeNamedItem(name);