Skip to content
This repository has been archived by the owner on Oct 9, 2022. It is now read-only.

Commit

Permalink
Update dom.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Apr 12, 2020
1 parent 483c56b commit a8629d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dom.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ DOM Basics
Creating DOM Elements and Fragments
-----------------------------------

The DOM is built starting with an `Element <https://github.com/kwebio/kweb-core/blob/master/src/main/kotlin/kweb/Element.kt>`_, normally the `BodyElement <https://github.com/kwebio/kweb-core/blob/master/src/main/kotlin/kweb/Document.kt#L43>`_, which is obtained easily as follows:
The DOM is built starting with an `Element <https://github.com/kwebio/kweb-core/blob/master/src/main/kotlin/kweb/Element.kt>`_, normally the `BodyElement <https://github.com/kwebio/kweb-core/blob/master/src/main/kotlin/kweb/html/BodyElement.kt>`_, which is obtained easily as follows:

.. code-block:: kotlin
Expand All @@ -18,7 +18,7 @@ The DOM is built starting with an `Element <https://github.com/kwebio/kweb-core/
}
}
Let's create a `ButtonElement <https://github.com/kwebio/kweb-core/blob/master/src/main/kotlin/kweb/dom/element/creation/tags/other.kt#L14>`_ as a child of the body element, we do this using the *.new* function (which is
Let's create a <button> as a child of the <body>, we do this using the *.new* function (which is
supported by all Element types):

.. code-block:: kotlin
Expand Down

0 comments on commit a8629d6

Please sign in to comment.