本文整理了Java中org.jsoup.parser.Tag.isFormListed()
方法的一些代码示例,展示了Tag.isFormListed()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Tag.isFormListed()
方法的具体详情如下:
包路径:org.jsoup.parser.Tag
类名称:Tag
方法名:isFormListed
[英]Get if this tag represents a control associated with a form. E.g. input, textarea, output
[中]获取此标记是否表示与窗体关联的控件。例如输入、文本区、输出
代码示例来源:origin: org.jsoup/jsoup
private void insertNode(Node node) {
// if the stack hasn't been set up yet, elements (doctype, comments) go into the doc
if (stack.size() == 0)
doc.appendChild(node);
else if (isFosterInserts())
insertInFosterParent(node);
else
currentElement().appendChild(node);
// connect form controls to their form element
if (node instanceof Element && ((Element) node).tag().isFormListed()) {
if (formElement != null)
formElement.addElement((Element) node);
}
}
代码示例来源:origin: astamuse/asta4d
private void insertNode(Node node) {
// if the stack hasn't been set up yet, elements (doctype, comments) go into the doc
if (stack.size() == 0)
doc.appendChild(node);
else if (isFosterInserts())
insertInFosterParent(node);
else
currentElement().appendChild(node);
// connect form controls to their form element
if (node instanceof Element && ((Element) node).tag().isFormListed()) {
if (formElement != null)
formElement.addElement((Element) node);
}
}
内容来源于网络,如有侵权,请联系作者删除!