Catchpoint WebPageTest Documentation

Images With No Alt Attribute

Return the count of all images in the document that do not have an alt attribute.

[images-no-alt]
return document.querySelectorAll('img:not([alt])').length