Browse Source

Add new test for <link/>s with multiple entries in rel tags

tags/0.6
Chris Smith 14 years ago
parent
commit
251a0d9a81
2 changed files with 13 additions and 0 deletions
  1. 1
    0
      test/parsehtml.test.php
  2. 12
    0
      test/samplehtml/v2-test5.html

+ 1
- 0
test/parsehtml.test.php View File

@@ -41,6 +41,7 @@
41 41
   'samplehtml/v2-test2.html' => '2:http://server.com/path,',
42 42
   'samplehtml/v2-test3.html' => '2:http://server.com/path,',
43 43
   'samplehtml/v2-test4.html' => '1:http://server.com/path,http://delegate.com/',
44
+  'samplehtml/v2-test5.html' => '1:http://server.com/path,http://delegate.com/',
44 45
  );
45 46
 
46 47
  array_walk($tests, 'doHtmlTest');

+ 12
- 0
test/samplehtml/v2-test5.html View File

@@ -0,0 +1,12 @@
1
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
+<html>
3
+ <head>
4
+  <title>Blah</title>
5
+   <link rel="foo openid2.local_id" href="http://delegate2.com/">
6
+   <link rel="bar openid.server" href="http://server.com/path">
7
+   <link rel="baz openid.delegate" href="http://delegate.com/">
8
+  </title>
9
+ </head>
10
+ <body>
11
+ </body>
12
+</html>

Loading…
Cancel
Save