/parser/htmlparser/tests/html/xmp005.html

http://github.com/zpao/v8monkey · HTML · 48 lines · 46 code · 2 blank · 0 comment · 0 complexity · a1bc45ecc6f3f6702d076cf830682b8e MD5 · raw file

  1. <html>
  2. <body>
  3. use a XMP tag for C or JAVA source code.
  4. <br> The lt and gt signes are problematic.
  5. <XMP>
  6. cc = 123;
  7. // test lt
  8. if( cc < hhh ) {
  9. if(cc<xxx || as > gh) {
  10. //do womthing here;
  11. }
  12. }
  13. if( cc <= iii ) {
  14. if(cc<=yyy) {
  15. //do womthing here;
  16. }
  17. }
  18. // test gt
  19. if( cc > rrr ) {
  20. if(cc>eee) {
  21. //do womthing here;
  22. }
  23. }
  24. if( cc >= www ) {
  25. if(cc>=qqq) {
  26. //do womthing here;
  27. }
  28. }
  29. // what if the variable name is a valid tag name.
  30. if( cc < B && cc > kk ) {
  31. if(cc<B && cc > gg) {
  32. //do womthing here;
  33. }
  34. }
  35. cc = aa<<I;
  36. cc = B>>3;
  37. gt = true;
  38. for(a=0,gt=true; (a>0)&&gt; a++) {
  39. }
  40. a = 0x0004;
  41. lt = 0x0002;
  42. for(; a&lt; ) {
  43. }
  44. </XMP>
  45. </body>
  46. </html>