HTMLJS is not affected. You can write n attributes. As long as the defined attribute name is different from the original default attribute name. The browser does not parse this custom attribute. Previously, the developer honestly uses the default html attributes, such as class and name. I switched to Huawei's outsourcing service to build a mall system using an open-source framework. During encoding, you may encounter the following situations: There are many custom tags in the tag.
The Code is as follows:
_ M"
Src =" _ S "style ="-ms-interpolation-mode: bicubic; cursor: pointer ;"
Onclick = "queryProductDetail (this );"
InfoType =" "
Id =" "
ModuleId =" "
ChsDesc =" "
EngDesc =" "
ChsName =" "
EngName =" "
Onerror = 'checkimagefile (this );'
Onload = "DrawImage (this, 174,116)"/>
Summarized several points:
1. It has no effect on html js. You can write n attributes.
2. As long as the defined property name is not the same as the original default property name.
3. the browser will not parse this custom property
4. JS can get its value through xxx. getAttribute ("your written attribute ").
This benefit should be obvious. This should be applied more in the future.