Community
Participate
Working Groups
Sometimes SGMLDocument.getElementsByTagName("body") returns a node list which contains null element. ---------- sample code ---------- NodeList tmpNL = target.getElementsByTagName(tagName); // <= tagName = "body" int length = tmpNL.getLength(); // <= return 1 for (int i = 0; i < length; i++) { (Element) tmpNL.item(i); // <= tmpNL.item(0) = null }
The problem was related to performance improvement of the SGMLDocument.
Confirmed. In SGMLParentNode#replaceChild, several steps were added for updating maps that introduced in bug 281318.
Released in ACTF 0.8