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