Added some handling for wrapOption
authorPhilippe Le Hégaret <plh@w3.org>
Tue, 10 Feb 2009 18:51:17 +0000
changeset 92 e905f6f3f8dd
parent 91 102eaccb5d35
child 93 55fe90f3dd78
Added some handling for wrapOption
testsuite/web-framework/HTML5_player.js
--- a/testsuite/web-framework/HTML5_player.js	Tue Feb 10 13:56:16 2009 +0000
+++ b/testsuite/web-framework/HTML5_player.js	Tue Feb 10 18:51:17 2009 +0000
@@ -336,12 +336,17 @@
     if (v != null && v != "") {
 	if (v == "preserve") {
 	    v = "pre";
-	    htmlElement.spaces = true;
 	} else {
 	    v = "normal";
 	}
 	htmlElement.style.setProperty("white-space", v, "");
     }
+    v = dfxpElement.getAttributeNS(DFXP_NS_Style, "wrapOption");
+    if (v != "") {
+	if (v == "noWrap") {
+	    htmlElement.style.setProperty("white-space", "nowrap", "");
+	}
+    }
 }
 
 HTML5Caption_convertDFXP2HTML = function(dfxpNode, hasOrigin, top, left) {
@@ -823,7 +828,7 @@
 				   && node.aEnd > currentTime) {
 			    node.style.display = node.df_displayValue;
 			    node.df_isInTime = true;
-			}			    
+			}    
 		    }
 		}
 	    }, 100);