summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2012-07-05 19:43:07 (GMT)
committer Vincent Sanders <vince@netsurf-browser.org>2012-07-05 19:43:07 (GMT)
commit4807e25bb7374fbf28e9b13c86695eb0f7d8332b (patch)
tree8acfb89de31a5d69f02768404b418e567415ca4c
parent24cadf35148075ab5300ac406a2c87c8496dc0d5 (diff)
downloadlibhubbub-4807e25bb7374fbf28e9b13c86695eb0f7d8332b.tar.gz
libhubbub-4807e25bb7374fbf28e9b13c86695eb0f7d8332b.tar.bz2
Only call script complete callback if scripting is enabled
-rw-r--r--src/treebuilder/generic_rcdata.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/treebuilder/generic_rcdata.c b/src/treebuilder/generic_rcdata.c
index 29da1c5..9af9533 100644
--- a/src/treebuilder/generic_rcdata.c
+++ b/src/treebuilder/generic_rcdata.c
@@ -62,7 +62,8 @@ hubbub_error handle_generic_rcdata(hubbub_treebuilder *treebuilder,
/** \todo parse error */
}
- if (type == SCRIPT) {
+ if ((treebuilder->context.enable_scripting == true) &&
+ (type == SCRIPT)) {
err = complete_script(treebuilder);
}