* fix: stringify attribute values before comparison * simplify --------- Co-authored-by: Rich Harris <rich.harris@vercel.com>