1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/components/feeds/test/xml/rfc4287/entry_content_encoded.xml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,43 @@ 1.4 +<?xml version="1.0" encoding="iso-8859-1"?> 1.5 +<!-- 1.6 + 1.7 +Description: atom entry content:encoded and xhtml works 1.8 +Expect: var content = feed.items.queryElementAt(1, Components.interfaces.nsIFeedEntry).content.plainText(); content == "should appear"; 1.9 + 1.10 +--> 1.11 +<feed xmlns="http://www.w3.org/2005/Atom" 1.12 + xmlns:foo="http://www.example.org" 1.13 + foo:quux="quuux" 1.14 + xmlns:content="http://purl.org/rss/1.0/modules/content/"> 1.15 + 1.16 + <title>hmm</title> 1.17 + 1.18 + <author> 1.19 + <email>hmm@example.com</email> 1.20 + <name>foo</name> 1.21 + </author> 1.22 + <generator version="1.1" uri="http://example.org">Hmm</generator> 1.23 + <author> 1.24 + <email>bar@example.com</email> 1.25 + <name>foo</name> 1.26 + </author> 1.27 + <rights type="xhtml"> 1.28 + <div xmlns="http://www.w3.org/1999/xhtml"><i>test</i> rights</div> 1.29 + </rights> 1.30 + 1.31 + 1.32 + <entry></entry> 1.33 + 1.34 + <entry foo:bar="baz"> 1.35 + <title>test</title> 1.36 + <summary type="xhtml"> 1.37 + <div xmlns="http://www.w3.org/1999/xhtml"> 1.38 + <b>test</b> content 1.39 + </div> 1.40 + </summary> 1.41 + <content:encoded> 1.42 + should appear 1.43 + </content:encoded> 1.44 + </entry> 1.45 + 1.46 +</feed>