summaryrefslogtreecommitdiffstats
path: root/org/madore/damlengine/TodoDamlElement.java
diff options
context:
space:
mode:
authorDavid A. Madore <david+git@madore.org>2011-10-02 17:07:55 +0200
committerDavid A. Madore <david+git@madore.org>2011-10-02 17:07:55 +0200
commit16f86e7bf5f22806c2a64f9a9bc501a2f13e72e5 (patch)
tree2c0953f87fd023dad6a61707b7d69dee2e6863bf /org/madore/damlengine/TodoDamlElement.java
parent6e0587364ea813c1762a313feed942ff68e18e58 (diff)
downloaddamlengine-16f86e7bf5f22806c2a64f9a9bc501a2f13e72e5.tar.gz
damlengine-16f86e7bf5f22806c2a64f9a9bc501a2f13e72e5.tar.bz2
damlengine-16f86e7bf5f22806c2a64f9a9bc501a2f13e72e5.zip
Handle HTML <style> and <script> elements by adding CDATA sections as appropriate.
Previously, only the (automatically inserted) <style> and <script> elements in the HTML <head> were handled this way. This now extends to these elements anywhere in the document.
Diffstat (limited to 'org/madore/damlengine/TodoDamlElement.java')
-rw-r--r--org/madore/damlengine/TodoDamlElement.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/org/madore/damlengine/TodoDamlElement.java b/org/madore/damlengine/TodoDamlElement.java
index 93275d9..599e49a 100644
--- a/org/madore/damlengine/TodoDamlElement.java
+++ b/org/madore/damlengine/TodoDamlElement.java
@@ -163,11 +163,13 @@ public final class TodoDamlElement extends TodoDefaultElement {
this.ownerDeque.registerAtStart(toProcess);
this.ownerDeque.registerAtStart(toProcessFirst);
this.ownerDeque.
- registerAtEnd(new TodoStyleOrScript(TodoStyleOrScript.Type.STYLE,
- this.ctx, this));
+ registerAtEnd(new TodoStyleOrScript.
+ HeadStyleOrScript(TodoStyleOrScript.Type.STYLE,
+ this.ctx, this));
this.ownerDeque.
- registerAtEnd(new TodoStyleOrScript(TodoStyleOrScript.Type.SCRIPT,
- this.ctx, this));
+ registerAtEnd(new TodoStyleOrScript.
+ HeadStyleOrScript(TodoStyleOrScript.Type.SCRIPT,
+ this.ctx, this));
}
}