Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Classify for Dom.node #178

Open
Open
@Risto-Stevcev

Description

@Risto-Stevcev

Something like Js.Json.classify and Js.Types.classify but for Dom.nodes

It would be based on similar tags as
https://github.com/reasonml-community/bs-webapi-incubator/blob/master/src/Webapi/Webapi__Dom/Webapi__Dom__Types.re#L177-L190

But parameterized, ie:

type t =
  | Element of Dom.element
  | Text of Dom.text
  ...

let classify (node: Dom.node) : t = ...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions