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.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/org/madore/damlengine/TodoElement.java b/org/madore/damlengine/TodoElement.java
index 320724c..5c90366 100644
--- a/org/madore/damlengine/TodoElement.java
+++ b/org/madore/damlengine/TodoElement.java
@@ -62,8 +62,12 @@ public abstract class TodoElement extends TodoItem {
damlFactories.put("smiley-evil", new TodoSmileyElement.Factory(TodoSmileyElement.Type.EVIL));
damlFactories.put("img-a", new TodoImgAElement.Factory());
damlFactories.put("weblog-select", new TodoWeblogSelectElement.Factory());
+ damlFactories.put("weblog-index-select", new TodoWeblogIndexSelectElement.Factory());
}
+ protected final static Factory killAFactory
+ = new TodoKillAElement.Factory();
+
protected final Element node;
public TodoElement(Element node,
@@ -80,6 +84,9 @@ public abstract class TodoElement extends TodoItem {
String nsuri = node.getNamespaceURI();
if ( nsuri != null && nsuri.equals(DamlEngine.DAML_NS) )
factory = damlFactories.get(node.getLocalName());
+ else if ( nsuri != null && nsuri.equals(DamlEngine.XHTML_NS)
+ && ctx.killA && node.getLocalName().equals("a") )
+ factory = killAFactory;
if ( factory == null )
factory = damlDefaultFactory;
return factory.newItem(node, ctx, caller);