MCPcopy Create free account
hub / github.com/clips/pattern / isSelfClosingTag

Method isSelfClosingTag

pattern/web/soup/BeautifulSoup.py:1208–1212  ·  view source on GitHub ↗

Returns true iff the given string is the name of a self-closing tag according to this parser.

(self, name)

Source from the content-addressed store, hash-verified

1206 raise AttributeError
1207
1208 def isSelfClosingTag(self, name):
1209 """Returns true iff the given string is the name of a
1210 self-closing tag according to this parser."""
1211 return self.SELF_CLOSING_TAGS.has_key(name) \
1212 or self.instanceSelfClosingTags.has_key(name)
1213
1214 def reset(self):
1215 Tag.__init__(self, self, self.ROOT_TAG_NAME)

Callers 2

unknown_starttagMethod · 0.95
__init__Method · 0.80

Calls 1

has_keyMethod · 0.45

Tested by

no test coverage detected