fix(pretty-format): only call hasAttribute
if function
#11000
Merged
hasAttribute
if function
#11000