getAttribute String? getAttribute( String name ) Gets an attribute value. Implementation String? getAttribute(String name) => switch (_node.getAttribute(name)) { final JSString s => s.toDart, _ => null, };