(el,list,attr)
| 1968 | } |
| 1969 | } |
| 1970 | function _removeNamedNode(el,list,attr){ |
| 1971 | var i = _findNodeIndex(list,attr); |
| 1972 | if(i>=0){ |
| 1973 | var lastIndex = list.length-1 |
| 1974 | while(i<lastIndex){ |
| 1975 | list[i] = list[++i] |
| 1976 | } |
| 1977 | list.length = lastIndex; |
| 1978 | if(el){ |
| 1979 | var doc = el.ownerDocument; |
| 1980 | if(doc){ |
| 1981 | _onRemoveAttribute(doc,el,attr); |
| 1982 | attr.ownerElement = null; |
| 1983 | } |
| 1984 | } |
| 1985 | }else{ |
| 1986 | throw DOMException(NOT_FOUND_ERR,new Error()) |
| 1987 | } |
| 1988 | } |
| 1989 | NamedNodeMap.prototype = { |
| 1990 | length:0, |
| 1991 | item:NodeList.prototype.item, |
no test coverage detected