Home >Web Front-end >JS Tutorial >The difference between using custom tags in IE Firefox_javascript tips
1. The custom tags of firefox and IE can be unified through the following styles
2. The definition of custom tags can also be unified
3.js has a difference in getting the value of the custom label (if there is a unified method, please leave a message)
function f_test(){
var mylabels;
if(IE)/ /If it is ie
mylabels = document.getElementsByTagName("mylabel");
else//If it is FF
mylabels = document.getElementsByTagName("TEST:mylabel");
}