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

Add bindings for HtmlTemplateElement #199

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 0.19.2

* Added `Webapi.Dom.HtmlTemplateElement`

### 0.19.1

* Removed dev dependency on `bsdoc` to allow smooth installs on non-Mac
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bs-webapi",
"version": "0.19.1",
"version": "0.19.2",
"description": "Reason + BuckleScript bindings to DOM",
"repository": {
"type": "git",
Expand Down
8 changes: 8 additions & 0 deletions src/Webapi/Dom/Webapi__Dom__HtmlTemplateElement.re
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
type t;

[@bs.get] external content: Dom.element => Dom.documentFragment = "content";

include Webapi__Dom__Node.Impl({ type nonrec t = t; });
include Webapi__Dom__EventTarget.Impl({ type nonrec t = t; });
include Webapi__Dom__Element.Impl({ type nonrec t = t; });
include Webapi__Dom__HtmlElement.Impl({ type nonrec t = t; });
1 change: 1 addition & 0 deletions src/Webapi/Webapi__Dom.re
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ module HtmlElement = Webapi__Dom__HtmlElement;
module HtmlFormElement = Webapi__Dom__HtmlFormElement;
module HtmlImageElement = Webapi__Dom__HtmlImageElement;
module HtmlInputElement = Webapi__Dom__HtmlInputElement;
module HtmlTemplateElement = Webapi__Dom__HtmlTemplateElement;
module IdbVersionChangeEvent = Webapi__Dom__IdbVersionChangeEvent;
module Image = Webapi__Dom__Image;
module InputEvent = Webapi__Dom__InputEvent;
Expand Down