Disabling HTML5 element id as a javascript variable -
i looking @ this question, , seems "feature" of browser create top-level variable each id in document not recommended use. furthermore, seems pretty big issue potential conflicts (i.e. if 1 has dynamic id names becomes possible trash important variable in code). so, how can 1 disable in html 5? default, appears enabled (looking @ in firebug under firefox, example). can tell, html5 doesn't have directives "use strict" suggested (by some, , refuted others on above page) turn off.
and if can't turned off, there reason not go ahead , use variable name rather calling getelementbyid, such performance reasons?
Comments
Post a Comment