fix span bug in webkit browers