summaryrefslogtreecommitdiffstats
path: root/org/madore/damlengine/TodoElement.java
diff options
context:
space:
mode:
Diffstat (limited to 'org/madore/damlengine/TodoElement.java')
-rw-r--r--org/madore/damlengine/TodoElement.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/org/madore/damlengine/TodoElement.java b/org/madore/damlengine/TodoElement.java
index 12810c0..4f15afa 100644
--- a/org/madore/damlengine/TodoElement.java
+++ b/org/madore/damlengine/TodoElement.java
@@ -76,6 +76,12 @@ public abstract class TodoElement extends TodoItem {
protected final static Factory killAcronymFactory
= new TodoKillAcronymElement.Factory();
+ protected final static Factory styleFactory
+ = new TodoStyleOrScript.Factory(TodoStyleOrScript.Type.STYLE);
+
+ protected final static Factory scriptFactory
+ = new TodoStyleOrScript.Factory(TodoStyleOrScript.Type.SCRIPT);
+
protected final Element node;
public TodoElement(Element node,
@@ -97,6 +103,10 @@ public abstract class TodoElement extends TodoItem {
factory = killAFactory;
else if ( node.getLocalName().equals("acronym") )
factory = killAcronymFactory;
+ else if ( node.getLocalName().equals("style") )
+ factory = styleFactory;
+ else if ( node.getLocalName().equals("script") )
+ factory = scriptFactory;
}
if ( factory == null )
factory = defaultFactory;