| 1 |
<html> |
| 2 |
<head> |
| 3 |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> |
| 4 |
<title>Hello World</title> |
| 5 |
<base href="http://example.com/" /> |
| 6 |
</head> |
| 7 |
<body> |
| 8 |
<article class="h-entry"> |
| 9 |
<h1><a class="p-name">Expanding URLs within HTML content</a></h1> |
| 10 |
<div class="e-content"> |
| 11 |
<ul> |
| 12 |
<li><a class="u-url" href="http://www.w3.org/">Should not change: http://www.w3.org/</a></li> |
| 13 |
<li><a class="u-url" href="http://example.com/">Should not change: http://example.com/</a></li> |
| 14 |
<li><a class="u-url" href="test.html">File relative: test.html = http://example.com/test.html</a></li> |
| 15 |
<li><a class="u-url" href="/test/test.html">Directory relative: /test/test.html = http://example.com/test/test.html</a></li> |
| 16 |
<li><a class="u-url" href="/test.html">Relative to root: /test.html = http://example.com/test.html</a></li> |
| 17 |
</ul> |
| 18 |
<img src="http://www.w3.org/2008/site/images/logo-w3c-mobile-lg" /><img src="/images/test.gif" /> |
| 19 |
</div> |
| 20 |
</article> |
| 21 |
</body> |