• Home
  • Raw
  • Download

Lines Matching +full:bare +full:- +full:events

11         self.events = []
12 self.append = self.events.append
16 # Normalize the list of events so that buffer artefacts don't
20 for event in self.events:
23 L[-1] = ("data", L[-1][1] + event[1])
27 self.events = L
93 events = parser.get_events()
94 if events != expected_events:
95 self.fail("received events did not match expected events" +
98 "\nReceived:\n" + pprint.pformat(events))
100 def _run_check_extra(self, source, events): argument
101 self._run_check(source, events,
119 <!--comment1a
120 -></foo><bar>&lt;<?pi?></foo<bar
121 comment1b-->
125 <!--comment2a-- --comment2b-->
135 ("comment", "comment1a\n-></foo><bar>&lt;<?pi?></foo<bar\ncomment1b"),
141 ("comment", "comment2a-- --comment2b"),
183 self._run_check("this < text > contains < bare>pointy< brackets", [
184 ("data", "this < text > contains < bare>pointy< brackets"),
209 self._run_check(["", "<!--abc-->"], output)
210 self._run_check(["<", "!--abc-->"], output)
211 self._run_check(["<!", "--abc-->"], output)
212 self._run_check(["<!-", "-abc-->"], output)
213 self._run_check(["<!--", "abc-->"], output)
214 self._run_check(["<!--a", "bc-->"], output)
215 self._run_check(["<!--ab", "c-->"], output)
216 self._run_check(["<!--abc", "-->"], output)
217 self._run_check(["<!--abc-", "->"], output)
218 self._run_check(["<!--abc--", ">"], output)
219 self._run_check(["<!--abc-->", ""], output)
222 # from http://www.w3.org/QA/2002/04/valid-dtd-list.html
224 ('HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" '
226 ('HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" '
228 ('html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" '
229 '"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"'),
230 ('html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" '
231 '"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"'),
232 ('math PUBLIC "-//W3C//DTD MathML 2.0//EN" '
234 ('html PUBLIC "-//W3C//DTD '
236 '"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"'),
237 ('svg PUBLIC "-//W3C//DTD SVG 1.1//EN" '
239 'html PUBLIC "-//IETF//DTD HTML 2.0//EN"',
240 'html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"']
267 '<!-- not a comment --> &not-an-entity-ref;',
273 '<!-- document.write("</scr" + "ipt>"); -->',
278 '\n<!-- //\nvar foo = 3.14;\n// -->\n',
280 '<!-- \u2603 -->',
299 # The normal event collector normalizes the events in get_events,
300 # so we override it to return the original list of events.
303 return self.events
305 content = """<!-- not a comment --> &not-an-entity-ref;
319 html = ("<!-- I'm a valid comment -->"
320 '<!--me too!-->'
321 '<!------>'
322 '<!---->'
323 '<!----I have many hyphens---->'
324 '<!-- I have a > in the middle -->'
325 '<!-- and I have -- in the middle! -->')
328 ('comment', '--'),
330 ('comment', '--I have many hyphens--'),
332 ('comment', ' and I have -- in the middle! ')]
336 html = ('<!--[if IE & !(lte IE 8)]>aren\'t<![endif]-->'
337 '<!--[if IE 8]>condcoms<![endif]-->'
338 '<!--[if lte IE 7]>pretty?<![endif]-->')
457 # see http://www.w3.org/TR/html5/tokenization.html#end-tag-open-state
459 html = ('<br></label</p><br></div end tmAd-leaderBoard><br></<h4><br>'
468 # comment because the first char after </ is not a-zA-Z
542 '<! not a comment either -->'
543 '<! -- close enough -->'
544 '<!><!<-- this was an empty comment>'
548 ('comment', ' not a comment either --'),
549 ('comment', ' -- close enough --'),
551 ('comment', '<-- this was an empty comment'),
557 # these condcoms are missing the '--' after '<!' and before the '>'
590 # #23144: make sure that all the events are triggered when
650 "<a a.b='v' c:d=v e-f=v>",
651 [("starttag", "a", [("a.b", "v"), ("c:d", "v"), ("e-f", "v")])])
679 "<a href=test'style='color:red;bad1'>test - bad1</a>"
680 "<a href=test'+style='color:red;ba2'>test - bad2</a>"
681 "<a href=test'&nbsp;style='color:red;bad3'>test - bad3</a>"
682 "<a href = test'&nbsp;style='color:red;bad4' >test - bad4</a>"
686 ('data', 'test - bad1'), ('endtag', 'a'),
688 ('data', 'test - bad2'), ('endtag', 'a'),
690 ('data', 'test - bad3'), ('endtag', 'a'),
692 ('data', 'test - bad4'), ('endtag', 'a')
737 "<td align=left><font size=-1>"
738 "- <a href=/rabota/><span class=en> software-and-i</span></a>"
739 "- <a href='/1/'><span class=en> library</span></a></table>")
747 ('starttag', 'font', [('size', '-1')]),
748 ('data', '- '), ('starttag', 'a', [('href', '/rabota/')]),
749 ('starttag', 'span', [('class', 'en')]), ('data', ' software-and-i'),
751 ('data', '- '), ('starttag', 'a', [('href', '/1/')]),