}
public B on(EventType type, EventListener listener) {
assertCurrent();
Element element = elements.peek().element;
type.register(element, listener);
<BUG>return (B) this;
}</BUG>
public B rememberAs(String id) {
assertCurrent();
references.put(id, elements.peek().element);

}
public B attr(String name, String value) {
assertCurrent();
elements.peek().element.setAttribute(name, value);
return that();
}
