// JavaDoc inherited
public void openAnchor(DOMOutputBuffer dom, AnchorAttributes attributes) {
Element element = dom.openStyledElement("test-anchor", attributes);
LinkAssetReference reference = attributes.getHref();
String value;
if (reference != null && (value = reference.getURL()) != null) {
element.setAttribute("href", value);
}
TextAssetReference text = attributes.getShortcut();
if (text != null && (value = text.getText(TextEncoding.PLAIN)) != null) {
element.setAttribute("shortcut", value);