示例#1
0
文件: Attr.java 项目: xinl/HTMLUnit
 /** Detaches this attribute from the parent HTML element after caching the attribute value. */
 public void detachFromParent() {
   final DomAttr domNode = getDomNodeOrDie();
   final DomElement parent = (DomElement) domNode.getParentNode();
   if (parent != null) {
     domNode.setValue(parent.getAttribute(jsxGet_name()));
   }
   domNode.remove();
 }