Package org.w3c.dom.html

Examples of org.w3c.dom.html.HTMLHeadElement


                    "HTML response must have exactly one HEAD element, "
                            + "found " + heads.getLength() + " : "
                            + heads.toString(),
                    OpenIDException.DISCOVERY_HTML_PARSE_ERROR);

        HTMLHeadElement head = (HTMLHeadElement) doc.getHead();
        NodeList linkElements = head.getElementsByTagName("LINK");
        for (int i = 0, len = linkElements.getLength(); i < len; i++)
        {
            HTMLLinkElement linkElement = (HTMLLinkElement) linkElements.item(i);
            setResult(linkElement.getRel(), linkElement.getHref(), result);
        }
View Full Code Here


      else {
        nTitle = new CHTMLTitleElement(this);
        nTitle.setTitle(title);
        nl = this.getElementsByTagName("head");

        HTMLHeadElement head = null;

        if (nl.getLength() > 0) {
          head = (HTMLHeadElement) nl.item(0);

          if (head.getChildNodes().getLength() > 0) {
            head.insertBefore(nTitle, head.getFirstChild());
          } // end if
          else {
            head.appendChild(nTitle);
          } // end else
        } // end if
      } // end else
    } // end if
  } // end setTitle()
View Full Code Here

TOP

Related Classes of org.w3c.dom.html.HTMLHeadElement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.