diff options
author | Frédéric Guillot <fred@miniflux.net> | 2018-04-09 20:30:55 -0700 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2018-04-09 20:30:55 -0700 |
commit | f76093690c0b3a1364269e0bfc9086ac9f60f184 (patch) | |
tree | 29c27a4ab48219162a22588b82de56b7c45514b6 /reader/rss/parser_test.go | |
parent | 7640a8cbab897b6791e885534ec9650dee669ce2 (diff) |
Get the right comments URL when having multiple namespaces
Diffstat (limited to 'reader/rss/parser_test.go')
-rw-r--r-- | reader/rss/parser_test.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/reader/rss/parser_test.go b/reader/rss/parser_test.go index b75a8ff..f3ca697 100644 --- a/reader/rss/parser_test.go +++ b/reader/rss/parser_test.go @@ -583,13 +583,16 @@ func TestParseEntryWithRelativeURL(t *testing.T) { func TestParseEntryWithCommentsURL(t *testing.T) { data := `<?xml version="1.0" encoding="utf-8"?> - <rss version="2.0"> + <rss version="2.0" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"> <channel> <link>https://example.org/</link> <item> <title>Item 1</title> <link>https://example.org/item1</link> - <comments>https://example.org/comments</comments> + <comments> + https://example.org/comments + </comments> + <slash:comments>42</slash:comments> </item> </channel> </rss>` |