Skip to content

Commit 191abd7

Browse files
committed
Bump global.json version
1 parent b133c9d commit 191abd7

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

global.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"sdk": {
3-
"version": "9.0.100",
3+
"version": "9.0.204",
44
"rollForward": "latestFeature",
55
"allowPrerelease": false
66
}
7-
}
7+
}

tests/authoring/Framework/HtmlAssertions.fs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,19 @@ actual: {actual}
8686
let private prettyHtml (html:string) (querySelector: string option) =
8787
let parser = HtmlParser()
8888
let document = parser.ParseDocument(html)
89+
90+
let elementOpt: IElement option =
91+
match querySelector with
92+
| Some q -> Option.ofObj (document.QuerySelector q)
93+
// IHtmlBodyElement implements IElement. document.Body returns IHtmlBodyElement?
94+
// Option.ofObj will handle if document.Body is null (though unlikely for valid HTML documents)
95+
| None -> Option.ofObj (document.Body :> IElement)
96+
97+
8998
let element =
9099
match querySelector with
91100
| Some q -> document.QuerySelector q
92101
| None -> document.Body
93-
94102
let links = element.QuerySelectorAll("a")
95103
links
96104
|> Seq.iter(fun l ->

0 commit comments

Comments
 (0)