HTMLHint icon indicating copy to clipboard operation
HTMLHint copied to clipboard

Feature request: height and width for img must be required

Open bastienmoulia opened this issue 7 years ago • 6 comments

To allow the browser to keep the space of the image during loading, the attributes height and width must be added to the img tag.

https://www.w3.org/wiki/HTML/Training/Image#Image_size

bastienmoulia avatar Oct 24 '16 12:10 bastienmoulia

For me, the another requirement is here. In our rule width and height should not use but described via CSS. For this reason, how is the option such like a below?

'width-height-require': true
'width-height-require': [false, 'never']

Thank you.

kyoyababa avatar Dec 07 '16 05:12 kyoyababa

This PR https://github.com/yaniswang/HTMLHint/pull/184 can solve this issue, you can configure which attributes are required for any tag

SqrTT avatar Jan 05 '17 13:01 SqrTT

Nice, i hope there will be a new release soon!

bastienmoulia avatar Jan 05 '17 14:01 bastienmoulia

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar May 14 '20 04:05 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 16 '20 19:07 stale[bot]

bump

Shinigami92 avatar Jul 16 '20 19:07 Shinigami92