wffweb/src/main/java/com/webfirmframework/wffweb/tag/repository/TagRepository.java
public AbstractHtml findOneTagByAttribute(
            final AbstractAttribute attribute) {

        if (attribute == null) {
            throw new NullValueException("attribute cannot be null");
        }

        for (final AbstractHtml ownerTag : attribute.getOwnerTags()) {
            if (browserPage.contains(ownerTag)) {
                return ownerTag;
            }
        }

        return null;
    }
public AbstractHtml findOneTagByAttribute(
            final AbstractAttribute attribute) {

        if (attribute == null) {
            throw new NullValueException("attribute cannot be null");
        }

        for (final AbstractHtml ownerTag : attribute.getOwnerTags()) {
            if (browserPage.contains(ownerTag)) {
                return ownerTag;
            }
        }

        return null;
    }
Finds one tag by attribute instance.

@param attribute
@return the first matching tag consuming the given attribute instance.
There must be a consuming tag which is available in the
browserPage instance otherwise returns null.
@throws NullValueException
if the {@code attribute } is null
@since 2.1.8
@author WFF