In our university website built on SharePoint (classic, on-premises), there is automatically generated code from SharePoint when the master page is created. For example, the ribbon banner code:
<div id="ms-designer-ribbon">
<!--SID:02 {Ribbon}-->
<!--PS: Start of READ-ONLY PREVIEW (do not modify) -->
<div class="DefaultContentBlock" style="background:rgb(0, 114, 198); color:white; width:100%; padding:8px; height:64px; overflow:hidden;">
The SharePoint ribbon will be here when your file is either previewed on or applied to your site.
</div>
<!--PE: End of READ-ONLY PREVIEW -->
</div>
From this code, in the page source we also see:
<img src="/_layouts/15/images/spcommon.png?rev=40" />
One of the issues flagged in our technical audit report is that this image is missing an alt attribute.
Since this code is automatically generated by SharePoint, I cannot directly modify it in the master page. The only workaround I found is to inject JavaScript to add the missing attribute, but as far as I know most audit tools run before JavaScript is executed, so the issue still appears.
Is there any way to add the missing alt attribute to this automatically generated SharePoint image without relying on JavaScript?