Я пытаюсь расширить все элементы dom, чтобы я мог получать и удалять их дочерние элементы. Функция ниже (работает в FF и Chrome). Существует ли эквивалент в IE7 для расширения базового dom-объекта?
if (!Element.get) {
Element.prototype.get = function(id) {
    for (var i = 0; i < this.childNodes.length; i++) {
        if (this.childNodes[i].id == id) {
            return this.childNodes[i];
        }
        if (this.childNodes[i].childNodes.length) {
            var ret = this.childNodes[i].get(id);
            if (ret != null) {
                return ret;
            }
        }
    }
    return null;
}
}
Element.prototype.removeChildren = function() {
    removeChildren(this);
}
Спасибо!
