Skip to content

Commit

Permalink
Fix HTML.is_document mistakenly pointing at is_root instead
Browse files Browse the repository at this point in the history
  • Loading branch information
dmbaturin committed Sep 6, 2024
1 parent 62e0e0a commit d21123c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin_api.ml
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@ struct
(* Node tests. *)
"is_element", V.efunc (V.option Map.html **->> V.bool) (fun n -> match n with None -> false | Some n -> Html.is_element n);
"is_root", V.efunc (V.option Map.html **->> V.bool) (fun n -> match n with None -> false | Some n -> Html.is_root n);
"is_document", V.efunc (V.option Map.html **->> V.bool) (fun n -> match n with None -> false | Some n -> Html.is_root n);
"is_document", V.efunc (V.option Map.html **->> V.bool) (fun n -> match n with None -> false | Some n -> Html.is_document n);

(* High-level convenience functions. *)
"get_heading_level", V.efunc (V.option Map.html **->> V.option V.int) Html.get_heading_level;
Expand Down

0 comments on commit d21123c

Please sign in to comment.