mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-05 02:43:37 +00:00
0e82c5f573
Adjusted code for custom RSS feed parsing now that feedparser does the parsing for us all we do is pull the data from the returned entries.
73 lines
No EOL
1.3 KiB
XML
73 lines
No EOL
1.3 KiB
XML
<!--
|
|
Description: feed subtitle is crazy
|
|
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>'
|
|
-->
|
|
<feed version="0.3" xmlns="http://purl.org/atom/ns#">
|
|
<subtitle type="text/html" mode="escaped">
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<title>Crazy HTML -- Can Your Regex Parse This?</title>
|
|
|
|
</head>
|
|
<body notRealAttribute="value"onload="executeMe();"foo="bar"
|
|
|
|
>
|
|
<!-- <script> -->
|
|
|
|
<!--
|
|
<script>
|
|
-->
|
|
|
|
</script>
|
|
|
|
|
|
<script
|
|
|
|
|
|
>
|
|
|
|
function executeMe()
|
|
{
|
|
|
|
|
|
|
|
|
|
/* <script>
|
|
function am_i_javascript()
|
|
{
|
|
var str = "Some innocuously commented out stuff";
|
|
}
|
|
< /script>
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
alert("Executed");
|
|
}
|
|
|
|
</script
|
|
|
|
|
|
|
|
>
|
|
<h1>Did The Javascript Execute?</h1>
|
|
<div notRealAttribute="value
|
|
"onmouseover="
|
|
executeMe();
|
|
"foo="bar">
|
|
I will execute here, too, if you mouse over me
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
</subtitle>
|
|
</feed> |