Skip to content
This repository has been archived by the owner on Nov 10, 2020. It is now read-only.

Commit

Permalink
Merge pull request mozilla#158 from cadecairos/t1235
Browse files Browse the repository at this point in the history
[#1235] Make TTML use text if textContent is undefined, fixing TTMLParse...
  • Loading branch information
cadecairos committed Jul 24, 2012
2 parents 7f03406 + 6897ed2 commit 80d22fe
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 80d22fe

Please sign in to comment.