summaryrefslogtreecommitdiffstats
path: root/src/uscxml/debug/InterpreterIssue.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/uscxml/debug/InterpreterIssue.cpp')
-rw-r--r--src/uscxml/debug/InterpreterIssue.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/uscxml/debug/InterpreterIssue.cpp b/src/uscxml/debug/InterpreterIssue.cpp
index 346c0f6..f3620be 100644
--- a/src/uscxml/debug/InterpreterIssue.cpp
+++ b/src/uscxml/debug/InterpreterIssue.cpp
@@ -767,7 +767,9 @@ NEXT_SET:
for (auto iter = scripts.begin(); iter != scripts.end(); iter++) {
DOMElement* script = *iter;
- if (HAS_ATTR(script, kXMLCharSource) && script->getChildNodes()->getLength() > 0) {
+ if (HAS_ATTR(script, kXMLCharSource) &&
+ script->getChildNodes()->getLength() > 0 &&
+ script->getUserData(X("downladed")) == NULL) {
issues.push_back(InterpreterIssue("Script element cannot have src attribute and children", script, InterpreterIssue::USCXML_ISSUE_WARNING));
}
}