MCPcopy Index your code
hub / github.com/Macuyiko/minecraft-python / _removeNamedNode

Function _removeNamedNode

ServerEditorWeb/ace/worker-xml.js:1970–1988  ·  view source on GitHub ↗
(el,list,attr)

Source from the content-addressed store, hash-verified

1968 }
1969}
1970function _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}
1989NamedNodeMap.prototype = {
1990 length:0,
1991 item:NodeList.prototype.item,

Callers 1

worker-xml.jsFile · 0.85

Calls 3

_findNodeIndexFunction · 0.85
_onRemoveAttributeFunction · 0.85
DOMExceptionFunction · 0.85

Tested by

no test coverage detected