MCPcopy Create free account
hub / github.com/nodejs/node / bURL

Function bURL

test/fixtures/wpt/url/resources/a-element.js:10–15  ·  view source on GitHub ↗
(url, base)

Source from the content-addressed store, hash-verified

8}
9
10function bURL(url, base) {
11 setBase(base);
12 const a = document.createElement("a");
13 a.setAttribute("href", url);
14 return a;
15}
16
17function runURLTests(urlTests) {
18 for (const expected of urlTests) {

Callers 1

runURLTestsFunction · 0.70

Calls 2

createElementMethod · 0.80
setBaseFunction · 0.70

Tested by

no test coverage detected