Open
Description
The signature for body()
is:
func body() -> Element?
It would improve ergonomics if there was a version of this that threw, e.g.:
func body() throws -> Element
This would allow for better ergonomics at call sites that propagate errors, while not really diminishing the ergonomics for sites that want to deal in optionals, as try?
is always available.
It wasn't immediately clear to me if try document.select("body")
is an appropriate alternative for getting a throwing version of this.
Activity