String? attr(String name, [String? value]) { if (value == null) { return element?.getAttribute(name); } element?.setAttribute(name, value); return value; }