| Summary: | getElementsByTagName returns a node list which contains null element. | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Daisuke Sato <dsato> |
| Component: | ACTF | Assignee: | Project Inbox <actf.model-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | kentarou |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
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 |
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 }