Is is possible to extend a native HTML table?
C# example: public class: htmltable{}
or something like:
HTMLTable.prototype.myType=function(){
this.clss='myClass';
this.setAttribute('class',this.clss);
}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Where browsers have implemented an inheritance scheme for DOM elements, you can usually extend them according to that scheme. Most modern browsers implement prototype inheritance that is consistent with ECMA-262, however do not use it because:
Prototype.js uses DOM element inheritance in UAs that support it, and uses a fallback of “extending” DOM elements themselves where they don’t. It has recently abandoned that strategy for the reasons noted above. It was also error prone and slow.