You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Query part of the URL is not included in the result string when getting Href propery of IHtmlAnchorElement if the attribute is empty href='' or has a link to an element on the same page href='#section1'href='#'. Browsers include query when clicking on such links.
Example:
var ctx = BrowsingContext.New();
var url = "https://example.com/path?query=value";
var content = "<a href='#section1'></a>";
var document = await ctx.OpenAsync(x => x.Address(url).Content(content));
var a = document.QuerySelector<IHtmlAnchorElement>("a");
Debug.Assert(a.Href == "https://example.com/path?query=value#section1");
For now a.Href equals "https://example.com/path#section1" in this scenario
The text was updated successfully, but these errors were encountered:
Query part of the URL is not included in the result string when getting Href propery of IHtmlAnchorElement if the attribute is empty
href=''
or has a link to an element on the same pagehref='#section1'
href='#'
. Browsers include query when clicking on such links.Example:
For now
a.Href
equals"https://example.com/path#section1"
in this scenarioThe text was updated successfully, but these errors were encountered: