Monotone-Parent: 93761fa4ba935f3bb44092a15d1a6d416b73af2a

Monotone-Revision: 2b2e1fe5da7fe7b7fc1d4bc80c975f7b9c4ad502

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-10-31T22:58:44
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2006-10-31 22:58:44 +00:00
parent 59c1a34a45
commit f677057573
+6
View File
@@ -1080,6 +1080,12 @@ HTMLElement.prototype.removeClassName = function(className) {
this.setAttribute('class', classStr);
}
HTMLElement.prototype.hasClassName = function(className) {
var classStr = '' + this.getAttribute('class');
position = classStr.indexOf(className, 0);
return (position > -1);
}
HTMLElement.prototype.getParentWithTagName = function(tagName) {
var currentElement = this;
tagName = tagName.toUpperCase();