Skip to content

Commit

Permalink
Merge pull request #827 from alfmatos/develop
Browse files Browse the repository at this point in the history
Force xhtml on span tags
  • Loading branch information
gionkunz committed Nov 1, 2016
2 parents 1c2b5dc + e5d1561 commit f11d63d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/scripts/core.js
Expand Up @@ -971,7 +971,8 @@ var Chartist = {
if(useForeignObject) {
// We need to set width and height explicitly to px as span will not expand with width and height being
// 100% in all browsers
var content = '<span class="' + classes.join(' ') + '" style="' +
var content = '<span class="' + classes.join(' ') +
'" xmlns="' + Chartist.namespaces.xhtml + '" style="' +
axis.units.len + ': ' + Math.round(positionalData[axis.units.len]) + 'px; ' +
axis.counterUnits.len + ': ' + Math.round(positionalData[axis.counterUnits.len]) + 'px">' +
labels[index] + '</span>';
Expand Down

0 comments on commit f11d63d

Please sign in to comment.