Skip to content

Commit ed45238

Browse files
committed
Explain how to get hold of a Document
Resolves #19
1 parent 65d1b79 commit ed45238

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ package-lock.json
66
/bower_components/
77
/node_modules/
88
/output/
9+
/generated-docs/

src/Web/DOM/Document.purs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
-- | This module provides type definitions and implementations for the
2+
-- | `Document` interface, which is part of the W3C DOM API.
3+
-- |
4+
-- | The DOM API doesn't actually give you any way of getting hold of a
5+
-- | `Document` by itself. To do that, you will need to look at one of the
6+
-- | other APIs which build on the DOM API. For example, `window.document` is
7+
-- | part of the HTML5 API, and so the relevant binding can be found in
8+
-- | `Web.HTML.Window`, which is part of the `purescript-web-html` package.
19
module Web.DOM.Document
210
( Document
311
, fromNode

0 commit comments

Comments
 (0)