From 961bdfc66151b9aef46149e4730110ef409e5587 Mon Sep 17 00:00:00 2001 From: "David A. Madore" Date: Fri, 26 Aug 2011 16:53:03 +0200 Subject: Move most of the context to a "general context" substructure. This is so as to make sure that cloning (which does a shallow copy) gives us references to the same mutable content. --- org/madore/damlengine/TodoExtraStyleOrScriptElement.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'org/madore/damlengine/TodoExtraStyleOrScriptElement.java') diff --git a/org/madore/damlengine/TodoExtraStyleOrScriptElement.java b/org/madore/damlengine/TodoExtraStyleOrScriptElement.java index a475863..9b4a6c6 100644 --- a/org/madore/damlengine/TodoExtraStyleOrScriptElement.java +++ b/org/madore/damlengine/TodoExtraStyleOrScriptElement.java @@ -33,9 +33,9 @@ public final class TodoExtraStyleOrScriptElement extends TodoDefaultElement { public void handleNodeOnly() { String content = node.getTextContent(); if ( t == TodoStyleOrScript.Type.SCRIPT ) - ctx.scriptContent.append(content); + ctx.gc.scriptContent.append(content); else - ctx.styleContent.append(content); + ctx.gc.styleContent.append(content); Node ws = node.getNextSibling(); if ( ( ws.getNodeType() == Node.TEXT_NODE || ws.getNodeType() == Node.CDATA_SECTION_NODE ) -- cgit v1.2.3