MCPcopy Index your code
hub / github.com/python/cpython / _get_isWhitespaceInElementContent

Method _get_isWhitespaceInElementContent

Lib/xml/dom/minidom.py:1176–1186  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1174 return None
1175
1176 def _get_isWhitespaceInElementContent(self):
1177 if self.data.strip():
1178 return False
1179 elem = _get_containing_element(self)
1180 if elem is None:
1181 return False
1182 info = self.ownerDocument._get_elem_info(elem)
1183 if info is None:
1184 return False
1185 else:
1186 return info.isElementContent()
1187
1188defproperty(Text, "isWhitespaceInElementContent",
1189 doc="True iff this text node contains only whitespace"

Callers

nothing calls this directly

Calls 4

_get_containing_elementFunction · 0.85
_get_elem_infoMethod · 0.80
stripMethod · 0.45
isElementContentMethod · 0.45

Tested by

no test coverage detected