tmpvar/jsdom — pull request #524 by kaven276 (2012-10-22 03:19:08+00:00)
Title: core.resourceLoader.baseUrl have implementation bug

if (baseElements.length > 0) {
baseUrl = baseElements.item(0).href; ***
}

when baseElements have target property but not have href property, the logic is break, so it should changed to

baseUrl = baseElements.item(0).href || baseUrl; ***

In my site scanner(for test), it can not resolve a.href, all relative href is not prepend the base url, then I found the bug.