org.cobraparser.html.renderer.RenderUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Cobra Show documentation
Show all versions of Cobra Show documentation
Cobra is the rendering engine designed for LoboBrowser
package org.cobraparser.html.renderer;
import java.util.Iterator;
import org.w3c.dom.html.HTMLHtmlElement;
public final class RenderUtils {
public static Renderable findHtmlRenderable(RCollection root) {
final Iterator rs = root.getRenderables();
if (rs != null) {
while (rs.hasNext()) {
final Renderable r = rs.next();
if (r.getModelNode() instanceof HTMLHtmlElement) {
return r;
}
}
}
return null;
}
}