Favor the use of textContent over innerText for the text binder.
Showing
1 changed file
with
3 additions
and
3 deletions
... | @@ -57,10 +57,10 @@ Rivets.binders.value = | ... | @@ -57,10 +57,10 @@ Rivets.binders.value = |
57 | el.value = if value? then value else '' | 57 | el.value = if value? then value else '' |
58 | 58 | ||
59 | Rivets.binders.text = (el, value) -> | 59 | Rivets.binders.text = (el, value) -> |
60 | if el.innerText? | 60 | if el.textContent? |
61 | el.innerText = if value? then value else '' | ||
62 | else | ||
63 | el.textContent = if value? then value else '' | 61 | el.textContent = if value? then value else '' |
62 | else | ||
63 | el.innerText = if value? then value else '' | ||
64 | 64 | ||
65 | Rivets.binders.if = | 65 | Rivets.binders.if = |
66 | block: true | 66 | block: true | ... | ... |
-
Please register or sign in to post a comment