Skip to content

Commit 65944ab

Browse files
authored
Merge pull request #1045 from mathjax/svg-xmlns
Add xmlns for global cache svg element. (mathjax/MathJax-demos-node#58)
2 parents c48f82c + 0643b04 commit 65944ab

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ts/output/svg.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,11 @@ CommonOutputJax<
198198
*/
199199
public pageElements(html: MathDocument<N, T, D>) {
200200
if (this.options.fontCache === 'global' && !this.findCache(html)) {
201-
return this.svg('svg', {id: SVG.FONTCACHEID, style: {display: 'none'}}, [this.fontCache.getCache()]);
201+
return this.svg('svg', {
202+
xmlns: SVGNS,
203+
id: SVG.FONTCACHEID,
204+
style: {display: 'none'}
205+
}, [this.fontCache.getCache()]);
202206
}
203207
return null as N;
204208
}

0 commit comments

Comments
 (0)