Pass | The document base URL of a document containing one or more base elements with href attributes is the frozen base URL of the first base element in the document that has an href attribute, in tree order. | Asserts runPass | assert_equals("https://wpt.live/foo/foo", "https://wpt.live/foo/foo", "img src should resolve correctly")
at assert_resolve_url ( /html/infrastructure/urls/terminology-0/document-base-url.html:18:7) | Pass | assert_equals("https://wpt.live/foo/bar", "https://wpt.live/foo/bar", "The document base URL should be URL of the first base element that has an href attribute.")
at Test.<anonymous> ( /html/infrastructure/urls/terminology-0/document-base-url.html:33:9) |
|
Pass | The fallback base URL of a document containing no base element is the document's address. | Asserts runPass | assert_equals("https://wpt.live/common/foo", "https://wpt.live/common/foo", "img src should resolve correctly")
at assert_resolve_url ( /html/infrastructure/urls/terminology-0/document-base-url.html:18:7) | Pass | assert_equals("https://wpt.live/common/blank.html", "https://wpt.live/common/blank.html", "The document base URL should be the document's address.")
at Test.<anonymous> ( /html/infrastructure/urls/terminology-0/document-base-url.html:42:9) |
|
Pass | The fallback base URL of a document whose address is about:blank is the document base URL of the creator document. | Asserts runPass | assert_equals("https://wpt.live/html/infrastructure/urls/terminology-0/foo", "https://wpt.live/html/infrastructure/urls/terminology-0/foo", "img src should resolve correctly")
at assert_resolve_url ( /html/infrastructure/urls/terminology-0/document-base-url.html:18:7) | Pass | assert_equals("https://wpt.live/html/infrastructure/urls/terminology-0/document-base-url.html", "https://wpt.live/html/infrastructure/urls/terminology-0/document-base-url.html", "The document base URL should be the creator document's base URL.")
at Test.<anonymous> ( /html/infrastructure/urls/terminology-0/document-base-url.html:52:9) |
|
Pass | about:blank with a base element. | Asserts runPass | assert_equals("https://wpt.live/html/infrastructure/urls/terminology-0/sub/foo", "https://wpt.live/html/infrastructure/urls/terminology-0/sub/foo", "img src should resolve correctly")
at assert_resolve_url ( /html/infrastructure/urls/terminology-0/document-base-url.html:18:7) | Pass | assert_equals("https://wpt.live/html/infrastructure/urls/terminology-0/sub/", "https://wpt.live/html/infrastructure/urls/terminology-0/sub/")
at Test.<anonymous> ( /html/infrastructure/urls/terminology-0/document-base-url.html:65:9) |
|
Pass | The fallback base URL of an iframe srcdoc document is the document base URL of the document's browsing context's browsing context container's document. | Asserts runPass | assert_equals("https://wpt.live/html/infrastructure/urls/terminology-0/foo", "https://wpt.live/html/infrastructure/urls/terminology-0/foo", "img src should resolve correctly")
at assert_resolve_url ( /html/infrastructure/urls/terminology-0/document-base-url.html:18:7) | Pass | assert_equals("https://wpt.live/html/infrastructure/urls/terminology-0/document-base-url.html", "https://wpt.live/html/infrastructure/urls/terminology-0/document-base-url.html", "The document base URL should be the containing document's base URL.")
at Test.<anonymous> ( /html/infrastructure/urls/terminology-0/document-base-url.html:75:9) |
|
Pass | The base URL of an iframe srcdoc document with a <base> tag should be set by that tag. | Asserts runPass | assert_equals("https://wpt.live/html/infrastructure/urls/terminology-0/sub/foo", "https://wpt.live/html/infrastructure/urls/terminology-0/sub/foo", "img src should resolve correctly")
at assert_resolve_url ( /html/infrastructure/urls/terminology-0/document-base-url.html:18:7) | Pass | assert_equals("https://wpt.live/html/infrastructure/urls/terminology-0/sub/", "https://wpt.live/html/infrastructure/urls/terminology-0/sub/", "The srcdoc document's base URL should be set by the <base> tag.")
at Test.<anonymous> ( /html/infrastructure/urls/terminology-0/document-base-url.html:86:9) |
|