4 ms·
Actually custom html elements are part of a spec: http://www.w3.org/TR/2013/WD-custom-elements-20130514/ http://www.w3.org/TR/2013/WD-custom-elements-20130514/
by ramy_d 13y ago
Actually custom html elements are part of a spec: http://www.w3.org/TR/2013/WD-custom-elements-20130514/ http://www.w3.org/TR/2013/WD-custom-elements-20130514/ This method is a much cleaner approach, separating the declaration of functionality from the declaration of style. Your <input> example is convenient but does not apply to divs or other elements that could be used.