org.jsoup.parser.Tag.isFormListed()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(91)

本文整理了Java中org.jsoup.parser.Tag.isFormListed()方法的一些代码示例,展示了Tag.isFormListed()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Tag.isFormListed()方法的具体详情如下:
包路径:org.jsoup.parser.Tag
类名称:Tag
方法名:isFormListed

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);
  }
}

相关文章