smola/galimatias — pull request #29 by sideshowbarker (2014-03-12 03:45:34+00:00)
Title: Use http://example.org/foo/bar as base URL in CLI

This is just an enhancement request.

Right now the CLI doesn't provide any way to test relative URLs, because it assumes no base URL. It seems like the CLI would be more useful if it just assumed a base URL. The test cases at https://github.com/w3c/web-platform-tests/blob/master/url/urltestdata.txt assume "http://example.org/foo/bar" as a base URL, so I think just matching that would be good.

If you're OK with this idea but you’d prefer to make the base URL a user option that can be set through a command-line switch rather than making it hard-coded the way it is in the PR, then please just let me know—I’d be happy to write up a patch that adds that