firegloves
firegloves copied to clipboard
Breaks XHTML pages delivered as application/xhtml+xml
My blog is served with the application/xhtml+xml
MIME type, which means that browsers use an XML parser to parse the page.
firegloves injects non-wellformed tags into the page content, fully breaking the rendering of the pages:
Example: http://cweiske.de/tagebuch/
Error:
XML processing error: not well-formed
Adres: http://cweiske.de/tagebuch/ line 42, column 328:
function cleanCSS6170285095226784(d) { if (typeof d != 'string') return d; var fc = fontCache6170285095226784; var p = /font(\-family)?([\s]*:[\s]*)(((["'][\w\d\s\.\,\-@]*["'])|([\w\d\s\.\,\-@]))+)/gi; function r(m, pa, p0, p1, o, s) { var p1o = p1; p1 = p1.replace(/(^\s+)|(\s+$)/gi, '').replace(/\s+/gi, ' '); if (p1.length < 2) { p1o = ''; } else if (fc.indexOf(p1) == -1) { if (fc.length < fontCacheMax6170285095226784) { fc.push(p1); } else { p1o = fc[0]; } } return 'font' + pa + p0 + p1o; } fontCache6170285095226784 = fc; return d.replace(p, r); }
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------^