Lines Matching refs:def
11 def __init__(self):
16 def get_events(self):
33 def handle_starttag(self, tag, attrs):
36 def handle_startendtag(self, tag, attrs):
39 def handle_endtag(self, tag):
44 def handle_comment(self, data):
47 def handle_charref(self, data):
50 def handle_data(self, data):
53 def handle_decl(self, data):
56 def handle_entityref(self, data):
59 def handle_pi(self, data):
62 def unknown_decl(self, decl):
68 def handle_starttag(self, tag, attrs):
75 def _run_check(self, source, expected_events, collector=EventCollector):
86 def _run_check_extra(self, source, events):
89 def _parse_error(self, source):
90 def parse(source=source):
99 def test_processing_instruction_only(self):
107 def test_simple_html(self):
139 def test_unclosed_entityref(self):
145 def test_bad_nesting(self):
156 def test_bare_ampersands(self):
161 def test_bare_pointy_brackets(self):
166 def test_illegal_declarations(self):
170 def test_starttag_end_boundary(self):
174 def test_buffer_artefacts(self):
204 def test_starttag_junk_chars(self):
219 def test_valid_doctypes(self):
243 def test_slashes_in_starttag(self):
274 def test_declaration_junk_chars(self):
277 def test_startendtag(self):
291 def test_invalid_end_tags(self):
317 def test_broken_invalid_end_tag(self):
329 def test_get_starttag_text(self):
335 def test_cdata_content(self):
366 def test_cdata_with_closing_tags(self):
372 def get_events(self):
387 def test_malformatted_charref(self):
394 def test_unescape_function(self):
403 def test_attr_syntax(self):
412 def test_attr_values(self):
427 def test_attr_nonascii(self):
442 def test_attr_entity_replacement(self):
447 def test_attr_funky_names(self):
457 def test_entityrefs_in_attributes(self):
462 def test_entities_in_attribute_value(self):
472 def test_malformed_attributes(self):
492 def test_malformed_adjacent_attributes(self):
504 def test_adjacent_attributes(self):
513 def test_missing_attribute_value(self):
517 def test_javascript_attribute_value(self):
522 def test_end_tag_in_attribute_value(self):
529 def test_comments(self):
546 def test_broken_comments(self):
562 def test_condcoms(self):
571 def test_broken_condcoms(self):
605 def test_main():