OSDN Git Service

Add check for missing checkbox value and forced onmouseover removal.
authorRandy Baumgarte <randy@fbn.cx>
Mon, 26 Sep 2011 11:56:17 +0000 (07:56 -0400)
committerRandy Baumgarte <randy@fbn.cx>
Mon, 26 Sep 2011 11:56:17 +0000 (07:56 -0400)
src/cx/fbn/nevernote/xml/XMLCleanup.java

index 29584f0..73a0531 100644 (file)
@@ -165,10 +165,13 @@ public class XMLCleanup {
                        QDomElement e = node.toElement();\r
                        e.setTagName("en-todo");\r
                        String value = e.attribute("value");\r
+                       if (value.trim().equals(""))\r
+                               value = "false";\r
                        e.removeAttribute("value");\r
                        e.removeAttribute("unchecked");\r
                        e.setAttribute("checked", value);\r
                        e.removeAttribute("onclick");\r
+                       e.removeAttribute("onmouseover");\r
                        e.removeAttribute("type");\r
                }\r
 \r