Skip to content

Commit

Permalink
[#1235] Make TTML use text if textContent is undefined, fixing TTMLPa…
Browse files Browse the repository at this point in the history
…rser work in IE9
  • Loading branch information
Christopher De Cairos committed Jul 24, 2012
1 parent faf5436 commit 6897ed2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parsers/parserTTML/popcorn.parserTTML.js
Expand Up @@ -105,7 +105,7 @@
var sub = {};

// Trim left and right whitespace from text and convert non-explicit line breaks
sub.text = node.textContent.replace( rWhitespace, "" ).replace( rLineBreak, "<br />" );
sub.text = ( node.textContent || node.text ).replace( rWhitespace, "" ).replace( rLineBreak, "<br />" );
sub.id = node.getAttribute( "xml:id" ) || node.getAttribute( "id" );
sub.start = toSeconds ( node.getAttribute( "begin" ), timeOffset );
sub.end = toSeconds( node.getAttribute( "end" ), timeOffset );
Expand Down

0 comments on commit 6897ed2

Please sign in to comment.