Java Code Examples for com.gargoylesoftware.htmlunit.html.DomElement#getAttributes()

The following examples show how to use com.gargoylesoftware.htmlunit.html.DomElement#getAttributes() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: NamedNodeMap.java    From htmlunit with Apache License 2.0 5 votes vote down vote up
/**
 * Creates a new named node map for the specified element.
 *
 * @param element the owning element
 */
public NamedNodeMap(final DomElement element) {
    setParentScope(element.getScriptableObject());
    setPrototype(getPrototype(getClass()));

    attributes_ = element.getAttributes();
    setDomNode(element, false);
}
 
Example 2
Source File: NamedNodeMap.java    From HtmlUnit-Android with Apache License 2.0 5 votes vote down vote up
/**
 * Creates a new named node map for the specified element.
 *
 * @param element the owning element
 */
public NamedNodeMap(final DomElement element) {
    setParentScope((Scriptable) element.getScriptableObject());
    setPrototype(getPrototype(getClass()));

    attributes_ = element.getAttributes();
    setDomNode(element, false);
}