Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. {"tests": [
  2.  
  3. {"description":"Commented close tag in [R]CDATA",
  4. "contentModelFlags":["RCDATA", "CDATA"],
  5. "lastStartTag":"xmp",
  6. "input":"foo<!--</xmp>--></xmp>",
  7. "output":[["Character", "foo<!--</xmp>-->"], ["EndTag", "xmp"]]},
  8.  
  9. {"description":"Bogus comment in [R]CDATA",
  10. "contentModelFlags":["RCDATA", "CDATA"],
  11. "lastStartTag":"xmp",
  12. "input":"foo<!-->baz</xmp>",
  13. "output":[["Character", "foo<!-->baz"], ["EndTag", "xmp"]]},
  14.  
  15. {"description":"End tag surrounded by bogus comment in [R]CDATA",
  16. "contentModelFlags":["RCDATA", "CDATA"],
  17. "lastStartTag":"xmp",
  18. "input":"foo<!--></xmp><!-->baz</xmp>",
  19. "output":[["Character", "foo<!-->"], ["EndTag", "xmp"], "ParseError", ["Comment", ""], ["Character", "baz"], ["EndTag", "xmp"]]},
  20.  
  21. {"description":"Commented entities in RCDATA",
  22. "contentModelFlags":["RCDATA"],
  23. "lastStartTag":"xmp",
  24. "input":" &amp; <!-- &amp; --> &amp; </xmp>",
  25. "output":[["Character", " & <!-- &amp; --> & "], ["EndTag", "xmp"]]},
  26.  
  27. {"description":"Incorrect comment ending sequences in [R]CDATA",
  28. "contentModelFlags":["RCDATA", "CDATA"],
  29. "lastStartTag":"xmp",
  30. "input":"foo<!-- x --x>x-- >x--!>x--<></xmp>",
  31. "output":[["Character", "foo<!-- x --x>x-- >x--!>x--<></xmp>"]]}
  32.  
  33. ]}
  34.