mirror of
https://github.com/penpot/penpot.git
synced 2025-06-02 06:21:37 +02:00
Add get-inner-text
dom interop helper.
This commit is contained in:
parent
f60d0bc81a
commit
3002d296c8
1 changed files with 4 additions and 0 deletions
|
@ -109,6 +109,10 @@
|
||||||
[el]
|
[el]
|
||||||
(.-outerHTML el))
|
(.-outerHTML el))
|
||||||
|
|
||||||
|
(defn get-inner-text
|
||||||
|
[el]
|
||||||
|
(.-innerText el))
|
||||||
|
|
||||||
(defn query
|
(defn query
|
||||||
[el query]
|
[el query]
|
||||||
(.querySelector el query))
|
(.querySelector el query))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue