HTMLHint
HTMLHint copied to clipboard
Feature request: height and width for img must be required
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
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.
This PR https://github.com/yaniswang/HTMLHint/pull/184 can solve this issue, you can configure which attributes are required for any tag
Nice, i hope there will be a new release soon!
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.
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.
bump