Sha256: 946eef90e60bf4f0e828bbe314983753fd998a66b4e8cc1341d2b4757f2d8658

Contents?: true

Size: 1.37 KB

Versions: 31

Compression:

Stored size: 1.37 KB

Contents

<!--
Description: entry summary is crazy
Expect:      bozo and entries[0]['summary'] == u'Crazy HTML -' + '- Can Your Regex Parse This?\n\n\n\n<!-' + '- <script> -' + '->\n\n<!-' + '- \n\t<script> \n-' + '->\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>'
-->
<feed version="0.3" xmlns="http://purl.org/atom/ns#">
<entry>
<summary type="text/html" mode="escaped">
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

&lt;html xmlns="http://www.w3.org/1999/xhtml">
&lt;head>
&lt;title>Crazy HTML -- Can Your Regex Parse This?&lt;/title>

&lt;/head>
&lt;body    notRealAttribute="value"onload="executeMe();"foo="bar"

>
&lt;!-- &lt;script> -->

&lt;!-- 
	&lt;script> 
-->

&lt;/script>


&lt;script


>

function executeMe()
{




/* &lt;script> 
function am_i_javascript()
{
	var str = "Some innocuously commented out stuff";
}
&lt; /script>
*/

	
	
	
	
	
	
	
	
	alert("Executed");
}

                                   &lt;/script



>
&lt;h1>Did The Javascript Execute?&lt;/h1>
&lt;div notRealAttribute="value
"onmouseover="
executeMe();
"foo="bar">
I will execute here, too, if you mouse over me
&lt;/div>

&lt;/body>

&lt;/html>
</summary>
</entry>
</feed

Version data entries

31 entries across 31 versions & 6 rubygems

Version Path
rfeedparser-0.9.9 tests/illformed/sanitize/entry_summary_crazy.xml
rfeedparser-0.9.91 tests/illformed/sanitize/entry_summary_crazy.xml
rfeedparser-0.9.92 tests/illformed/sanitize/entry_summary_crazy.xml
rfeedparser-0.9.93 tests/illformed/sanitize/entry_summary_crazy.xml
rfeedparser-0.9.931 tests/illformed/sanitize/entry_summary_crazy.xml
rfeedparser-0.9.940 tests/illformed/sanitize/entry_summary_crazy.xml
rfeedparser-0.9.950 tests/illformed/sanitize/entry_summary_crazy.xml
rfeedparser-0.9.951 tests/illformed/sanitize/entry_summary_crazy.xml
rfeedparser-ictv-0.9.931 tests/illformed/sanitize/entry_summary_crazy.xml
rfeedparser_ictv-0.9.931 tests/illformed/sanitize/entry_summary_crazy.xml
rfeedparser_ictv-0.9.932 tests/illformed/sanitize/entry_summary_crazy.xml