equalizedigital / accessibility-checker

GNU General Public License v2.0
14 stars 8 forks source link

Handle missing scheme in animated image rule #545

Closed pattonwebz closed 5 months ago

pattonwebz commented 5 months ago

The rule that handles detection of animated gifs and webp images was causing an error on sites when the image src was missing a scheme. This PR solves for that by creating a helper function to add a scheme and verify the URL is accessible before opening the file to analyse it's frames.

Fixes: #544