Is there a cross-browser way to check for IPv6-only hosts from within wpad.dat?

wpad.dat gives a javascript function. You will have to look up the IPv6-support for functions like isInNet or their ipv6-capable complements.