feed_subtitle_crazy.xml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <!--
  2. Description: feed subtitle is crazy
  3. Expect: not bozo and feed['tagline'] == u'Crazy HTML -' + u'- Can Your Regex Parse This?\n\n\n\n<!-' + u'- <script> -' + u'->\n\n<!-' + u'- \n\t<script> \n-' + u'->\n\n\n\nfunction executeMe()\n{\n\n\n\n\n/* \n<h1>Did The Javascript Execute?</h1>\n<div>\nI will execute here, too, if you mouse over me\n</div>'
  4. -->
  5. <feed version="0.3" xmlns="http://purl.org/atom/ns#">
  6. <subtitle type="text/html" mode="escaped">
  7. &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  8. &lt;html xmlns="http://www.w3.org/1999/xhtml">
  9. &lt;head>
  10. &lt;title>Crazy HTML -- Can Your Regex Parse This?&lt;/title>
  11. &lt;/head>
  12. &lt;body notRealAttribute="value"onload="executeMe();"foo="bar"
  13. >
  14. &lt;!-- &lt;script> -->
  15. &lt;!--
  16. &lt;script>
  17. -->
  18. &lt;/script>
  19. &lt;script
  20. >
  21. function executeMe()
  22. {
  23. /* &lt;script>
  24. function am_i_javascript()
  25. {
  26. var str = "Some innocuously commented out stuff";
  27. }
  28. &lt; /script>
  29. */
  30. alert("Executed");
  31. }
  32. &lt;/script
  33. >
  34. &lt;h1>Did The Javascript Execute?&lt;/h1>
  35. &lt;div notRealAttribute="value
  36. "onmouseover="
  37. executeMe();
  38. "foo="bar">
  39. I will execute here, too, if you mouse over me
  40. &lt;/div>
  41. &lt;/body>
  42. &lt;/html>
  43. </subtitle>
  44. </feed>