/** * Returns <tt>true</tt> if this attribute has been specified. * @return <tt>true</tt> if this attribute has been specified */ public boolean jsxGet_specified() { if (parent_ != null) { return parent_.hasAttribute(name_); } return true; }
/** * Returns <tt>true</tt> if this attribute has been specified. * @return <tt>true</tt> if this attribute has been specified */ public boolean jsxGet_specified() { if (parent_ != null) { return parent_.hasAttribute(name_); } return true; }
/** * Returns <tt>true</tt> if this attribute has been specified. * @return <tt>true</tt> if this attribute has been specified */ public boolean jsxGet_specified() { if (parent_ != null) { return parent_.hasAttribute(name_); } return true; }
@Override public boolean isEnabled() { assertElementNotStale(); return !element.hasAttribute("disabled"); }
/** * Returns true when an attribute with a given name is specified on this element or has a default value. * See also <a href="http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-ElHasAttr"> * the DOM reference</a> * @param name the name of the attribute to look for * @return true if an attribute with the given name is specified on this element or has a default value */ public boolean jsxFunction_hasAttribute(final String name) { return getDomNodeOrDie().hasAttribute(name); }
/** * Returns true when an attribute with a given name is specified on this element or has a default value. * See also <a href="http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-ElHasAttr"> * the DOM reference</a> * @param name the name of the attribute to look for * @return true if an attribute with the given name is specified on this element or has a default value */ public boolean jsxFunction_hasAttribute(final String name) { return getDomNodeOrDie().hasAttribute(name); }
/** * Returns true when an attribute with a given name is specified on this element or has a default value. * See also <a href="http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-ElHasAttr"> * the DOM reference</a> * @param name the name of the attribute to look for * @return true if an attribute with the given name is specified on this element or has a default value */ public boolean jsxFunction_hasAttribute(final String name) { return getDomNodeOrDie().hasAttribute(name); }
public String getAttribute(String name) { if ("value".equals(name) && element instanceof HtmlOption) { // for options, we want text if no value was specified return ((HtmlOption) element).getValueAttribute(); } else { if (!element.hasAttribute(name)) return null; return element.getAttribute(name); } }
/** * Returns true when an attribute with a given name is specified on this element or has a default value. * See also <a href="http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-ElHasAttr"> * the DOM reference</a> * @param name the name of the attribute to look for * @return true if an attribute with the given name is specified on this element or has a default value */ @JsxFunction public boolean hasAttribute(final String name) { return getDomNodeOrDie().hasAttribute(name); }
/** * Returns true when an attribute with a given name is specified on this element or has a default value. * See also <a href="http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-ElHasAttr"> * the DOM reference</a> * @param name the name of the attribute to look for * @return true if an attribute with the given name is specified on this element or has a default value */ @JsxFunction public boolean hasAttribute(final String name) { return getDomNodeOrDie().hasAttribute(name); }
if (!element.hasAttribute(name)) { return null; String multipleAttribute = ((HtmlSelect) element).getMultipleAttribute(); if ("".equals(multipleAttribute)) { return trueOrNull(element.hasAttribute("multiple")); return trueOrNull(element.hasAttribute(lowerName)); if (element instanceof HtmlOption && !element.hasAttribute("value")) { return element.getTextContent(); if (element.hasAttribute(name)) { return "";
if (element.hasAttribute("async") && !engine.isScriptRunning()) { final HtmlPage owningPage = element.getHtmlPageOrNull(); owningPage.addAfterLoadAction(action); else if (element.hasAttribute("async") || postponed && StringUtils.isBlank(element.getTextContent())) { engine.addPostponedAction(action);
if (element.hasAttribute("async") && !engine.isScriptRunning()) { final HtmlPage owningPage = element.getHtmlPageOrNull(); owningPage.addAfterLoadAction(action); else if (element.hasAttribute("async") || postponed && StringUtils.isBlank(element.getTextContent())) { engine.addPostponedAction(action);
return ATTRIBUTE_NOT_DEFINED != attrValue && attrValue.equals(value); return element.hasAttribute(condition.getLocalName());
return ATTRIBUTE_NOT_DEFINED != attrValue && attrValue.equals(value); return element.hasAttribute(ac1.getLocalName());
|| element instanceof HtmlSelect || element instanceof HtmlTextArea) && element.hasAttribute("required"); || element instanceof HtmlSelect || element instanceof HtmlTextArea) && !element.hasAttribute("required");
|| element instanceof HtmlSelect || element instanceof HtmlTextArea) && element.hasAttribute("required"); || element instanceof HtmlSelect || element instanceof HtmlTextArea) && !element.hasAttribute("required");