/** * Creates a new HTML attribute with the specified name. * * @param attributeName the name of the attribute to create * @return an attribute with the specified name */ public Attr jsxFunction_createAttribute(final String attributeName) { final DomAttr attr = new DomAttr(getPage(), null, attributeName, null); return (Attr) attr.getScriptObject(); }
/** * Creates a new HTML attribute with the specified name. * * @param attributeName the name of the attribute to create * @return an attribute with the specified name */ public Attr jsxFunction_createAttribute(final String attributeName) { final DomAttr attr = new DomAttr(getPage(), null, attributeName, null); return (Attr) attr.getScriptObject(); }
/** * Creates a new HTML attribute with the specified name. * * @param attributeName the name of the attribute to create * @return an attribute with the specified name */ public Attr jsxFunction_createAttribute(final String attributeName) { final DomAttr attr = new DomAttr(getPage(), null, attributeName, null); return (Attr) attr.getScriptObject(); }
/** * Retrieves an attribute node by name. * @param name the name of the attribute to retrieve * @return the XMLAttr node with the specified name or <code>null</code> if there is no such attribute */ public Object jsxFunction_getAttributeNode(final String name) { final Map<String, DomAttr> attributes = getDomNodeOrDie().getAttributesMap(); for (final DomAttr attr : attributes.values()) { if (attr.getName().equals(name)) { return attr.getScriptObject(); } } return null; }
/** * Retrieves an attribute node by name. * @param name the name of the attribute to retrieve * @return the XMLAttr node with the specified name or <code>null</code> if there is no such attribute */ public Object jsxFunction_getAttributeNode(final String name) { final Map<String, DomAttr> attributes = getDomNodeOrDie().getAttributesMap(); for (final DomAttr attr : attributes.values()) { if (attr.getName().equals(name)) { return attr.getScriptObject(); } } return null; }
/** * Retrieves an attribute node by name. * @param name the name of the attribute to retrieve * @return the XMLAttr node with the specified name or <code>null</code> if there is no such attribute */ public Object jsxFunction_getAttributeNode(final String name) { final Map<String, DomAttr> attributes = getDomNodeOrDie().getAttributesMap(); for (final DomAttr attr : attributes.values()) { if (attr.getName().equals(name)) { return attr.getScriptObject(); } } return null; }