MCPcopy Index your code
hub / github.com/csev/py4e / cloneNode

Method cloneNode

code3/bs4/builder/_html5lib.py:307–312  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

305 # print "TO", new_parent_element
306
307 def cloneNode(self):
308 tag = self.soup.new_tag(self.element.name, self.namespace)
309 node = Element(tag, self.soup, self.namespace)
310 for key,value in self.attributes:
311 node.attributes[key] = value
312 return node
313
314 def hasContent(self):
315 return self.element.contents

Callers 9

markTextSharedFunction · 0.45
markTextSharedFunction · 0.45
buildCollapsedSpanFunction · 0.45
VFunction · 0.45
jquery.min.jsFile · 0.45
VFunction · 0.45
jquery.min.jsFile · 0.45
VFunction · 0.45
jquery.min.jsFile · 0.45

Calls 2

ElementClass · 0.70
new_tagMethod · 0.45

Tested by

no test coverage detected