Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/FSharp.Data.Html.Core/HtmlCssSelectors.fs
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,16 @@ module internal HtmlCssSelectors =
| StartsWith ":enabled" t -> tokenize' (Enabled(getOffset t + 1) :: acc) t
| StartsWith ":file" t -> tokenize' (File(getOffset t + 1) :: acc) t
| StartsWith ":submit" t -> tokenize' (Submit(getOffset t + 1) :: acc) t
| ':' :: t ->
let s, _ = readString "" t

raise (
NotSupportedException(
sprintf
"CSS pseudo-class or pseudo-element ':%s' is not supported. See https://fsprojects.github.io/FSharp.Data/library/HtmlCssSelectors.html for the list of supported selectors."
s
)
)

| '>' :: t ->
let seqtoken = acc |> List.toSeq |> Seq.skip (1) |> Seq.toList
Expand Down
Loading