unsafe_base.xml 487 B

12345678910
  1. <!--
  2. SkipUnless: feedparser.ACCEPTABLE_URI_SCHEMES
  3. Description: xml:base is unsafe (uses unacceptable URI protocol)
  4. Expect: not bozo and entries[0]['title_detail']['base'] == u'http://example.com/'
  5. -->
  6. <feed version="0.3" xmlns="http://purl.org/atom/ns#">
  7. <entry xml:base="http://example.com/">
  8. <title type="application/xhtml+xml" xml:base="javascript:alert('unsafe')"><div xmlns="http://www.w3.org/1999/xhtml">Example <a href="test.html">test</a></div></title>
  9. </entry>
  10. </feed>