Author: jbeard
Date: Thu Mar 17 16:18:15 2011
New Revision: 1082560
URL: http://svn.apache.org/viewvc?rev=1082560&view=rev
Log:
Fixed small bug in demo where textContent dom attribute was being used instead
of value.
Modified:
commons/sandbox/gsoc/2010/scxml-js/trunk/demo/hierarchical-layout/test_with_dom.html
Modified:
commons/sandbox/gsoc/2010/scxml-js/trunk/demo/hierarchical-layout/test_with_dom.html
URL:
http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-js/trunk/demo/hierarchical-layout/test_with_dom.html?rev=1082560&r1=1082559&r2=1082560&view=diff
==============================================================================
---
commons/sandbox/gsoc/2010/scxml-js/trunk/demo/hierarchical-layout/test_with_dom.html
(original)
+++
commons/sandbox/gsoc/2010/scxml-js/trunk/demo/hierarchical-layout/test_with_dom.html
Thu Mar 17 16:18:15 2011
@@ -77,7 +77,7 @@
//set the initial XML
content in the textarea
var xmlString =
xmlUtils.serializeToString(scxmlDoc);
- scxml_input.textContent
= xmlString;
+ scxml_input.value =
xmlString;
//main callback on
buttons
function
applyHierLayout(heuristic,domAttachPoint,scxmlInputDoc){
@@ -86,7 +86,7 @@
function
parseTextareaPopupWindowAndApplyLayout(heuristic){
//parse from
textarea dom
- var
scxmlInputDoc = xmlUtils.parseFromString(scxml_input.textContent);
+ var
scxmlInputDoc = xmlUtils.parseFromString(scxml_input.value);
//open new
window and get DOM attach point
var w =
window.open("display.html");