diff --git a/lib/vtt.js b/lib/vtt.js index 66ab23f..7056728 100644 --- a/lib/vtt.js +++ b/lib/vtt.js @@ -425,7 +425,7 @@ } // Set the class list (as a list of classes, separated by space). if (m[2]) { - node.className = m[2].substr(1).replace('.', ' '); + node.className = m[2].substr(1).replace(/\./g, ' '); } // Append the node to the current node, and enter the scope of the new // node.