Topic: Bug: sizes attribute not allowed on img tags
htmLawed correctly allows using the srcset attribute on img tags:
'srcset'=>array('img'=>1)
But if the srcset attribute uses width descriptors, the sizes attribute must also be present, or the srcset itself will be ignored (https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/srcset).
So, this entry in $attrEleAr:
'sizes'=>array('link'=>1)
should be changed to:
'sizes'=>array('img'=>1, 'link'=>1)
to allow srcset and sizes to be used together.