| "http://example.com/foo/bar", |
| "HTTP://example.com/foo/bar", |
| "https://example.com/ttt?ggg", |
| "ftp://example.com/ttt?ggg", |
| "data:text/html,<b>foo</b>" |
| window.onload = function(e) |
| for (var i = 0; i < cases.length; ++i) { |
| var a = document.createElement('a'); |
| document.body.appendChild(a); |
| document.body.appendChild(document.createElement('br')); |
| var elmts = document.getElementsByTagName('a'); |
| for (var i = 0; i < elmts.length; ++i) |
| s += elmts[i].href + ' => ' + elmts[i].origin + '\n'; |
| var pre = document.createElement('pre'); |
| document.body.appendChild(pre); |