From 5acce829dc6ded492cca5ec87cd8bdbdb81667a5 Mon Sep 17 00:00:00 2001 From: "David A. Madore" Date: Wed, 7 Sep 2011 12:37:42 +0200 Subject: Try to produce HTML5/XHTML5 (polyglot) output. --- org/madore/damlengine/TodoDamlElement.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'org/madore/damlengine/TodoDamlElement.java') diff --git a/org/madore/damlengine/TodoDamlElement.java b/org/madore/damlengine/TodoDamlElement.java index 31e7357..10696f1 100644 --- a/org/madore/damlengine/TodoDamlElement.java +++ b/org/madore/damlengine/TodoDamlElement.java @@ -76,17 +76,9 @@ public final class TodoDamlElement extends TodoDefaultElement { Element meta; meta = ctx.doc.createElementNS(DamlEngine.XHTML_NS, "meta"); - meta.setAttributeNS(null, "http-equiv", "Content-Type"); - meta.setAttributeNS(null, "content", "text/html; charset=utf-8"); + meta.setAttributeNS(null, "charset", "utf-8"); ctx.gc.headNode.appendChild(meta); ctx.gc.headNode.appendChild(ctx.doc.createTextNode("\n")); - if ( lang != null ) { - meta = ctx.doc.createElementNS(DamlEngine.XHTML_NS, "meta"); - meta.setAttributeNS(null, "http-equiv", "Content-Language"); - meta.setAttributeNS(null, "content", lang); - ctx.gc.headNode.appendChild(meta); - ctx.gc.headNode.appendChild(ctx.doc.createTextNode("\n")); - } meta = ctx.doc.createElementNS(DamlEngine.XHTML_NS, "link"); meta.setAttributeNS(null, "rel", "Shortcut Icon"); meta.setAttributeNS(null, "href", (((ctx.gc.uriToTop!=null)?ctx.gc.uriToTop:"") -- cgit v1.2.3