*
* @param ele Element instance to be converted.
* @return Converted Node instance.
*/
protected Node previewConvertElement(Element ele) {
ITagConverter converter = createTagConverter(ele);
if (!converter.isVisualByHTML()) {
return null;
}
converter.convertRefresh(null);
Element result = converter.getResultElement();
List children = converter.getChildModeList();
if (children != null) {
for (int i = 0, size = children.size(); i < size; i++) {
Node child = (Node) children.get(i);
if (child != null) {
Node childPreview = previewConvert(child);
if (childPreview != null) {
ConvertPosition position = converter
.getChildVisualPosition(child);
if (position != null) {
/* FIX for bug #179403
// FIXME: not using index here, need fix.
position.getParentNode().appendChild(childPreview);