File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
tests/authoring/Framework Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ open System.Diagnostics
99open System.IO
1010open AngleSharp.Diffing
1111open AngleSharp.Diffing .Core
12+ open AngleSharp.Dom
1213open AngleSharp.Html
1314open AngleSharp.Html .Parser
1415open DiffPlex.DiffBuilder
@@ -89,6 +90,17 @@ actual: {actual}
8990 match querySelector with
9091 | Some q -> document.QuerySelector q
9192 | None -> document.Body
93+
94+ let links = element.QuerySelectorAll( " a" )
95+ links
96+ |> Seq.iter( fun l ->
97+ l.RemoveAttribute " hx-select-oob" |> ignore
98+ l.RemoveAttribute " hx-swap" |> ignore
99+ l.RemoveAttribute " hx-indicator" |> ignore
100+ l.RemoveAttribute " hx-push-url" |> ignore
101+ l.RemoveAttribute " preload" |> ignore
102+ )
103+
92104 use sw = new StringWriter()
93105 let formatter = PrettyMarkupFormatter()
94106 element.Children
You can’t perform that action at this time.
0 commit comments