Browse Source

Tests for xml:base

master
J. King 4 years ago
parent
commit
a4a6b0b72d
  1. 10
      tests/cases/XML/feed-atom.yaml
  2. 9
      tests/cases/XML/feed-rss2.yaml

10
tests/cases/XML/feed-atom.yaml

@ -176,3 +176,13 @@ Relative feed link:
meta:
url: 'http://example.com/path/'
link: ['/', 'http://example.com/path/']
Relative feed link with xml:base:
input: >
<feed xmlns="http://www.w3.org/2005/Atom" xml:base="http://example.com/">
<link href="/" xml:base="path/"/>
</feed>
output:
format: atom
version: '1.0'
link: ['/', 'http://example.com/path/']

9
tests/cases/XML/feed-rss2.yaml

@ -290,3 +290,12 @@ GUID not a url:
output:
format: rss
id: 'http://[example.com]/'
Relative feed link:
input: >
<rss><channel xml:base="http://example.com/path/">
<link>/</link>
</channel></rss>
output:
format: rss
link: ['/', 'http://example.com/path/']

Loading…
Cancel
Save