// @todo 2005060816 annotate child with style information if it's not inherited from the parent
Element annotator = dom.openStyledElement(
AccesskeyConstants.ACCESSKEY_ANNOTATION_ELEMENT, attributes);
// Open the anchor element.
Element anchor = dom.openElement("a");
// Copy attributes into the anchor element.
ctx.addTitleAttribute(anchor, attributes);
anchor.setAttribute("href", attributes.getHref().getURL());
// Add the dummy accesskey attribute as well.