/** * Sets the {@code rel} attribute for this element. * * <p>If this is a {@code link}} element, and {@code href} has been set from a {@link SafeUrl}, * then {@code value} has to be an allowed value. See {@link #setHref(SafeHtml)}. * * @throws IllegalArgumentException if this is a {@code link} element and this value of {@code * rel} is not allowed */ public SafeHtmlBuilder setRel(String value) { checkLinkDependentAttributes(value, hrefValueContract); return setAttribute("rel", value); }
checkLinkDependentAttributes(attributes.get("rel"), AttributeContract.SAFE_URL);