Firefox doesn't support the .innerText property on DOM elements; instead it uses .textContent. o_O
This addresses #6.
Showing
1 changed file
with
3 additions
and
0 deletions
... | @@ -104,7 +104,10 @@ Rivets.routines = | ... | @@ -104,7 +104,10 @@ Rivets.routines = |
104 | enabled: | 104 | enabled: |
105 | stateBinding 'disabled', true | 105 | stateBinding 'disabled', true |
106 | text: (el, value) -> | 106 | text: (el, value) -> |
107 | if el.innerText? | ||
107 | el.innerText = value or '' | 108 | el.innerText = value or '' |
109 | else | ||
110 | el.textContent = value or '' | ||
108 | html: (el, value) -> | 111 | html: (el, value) -> |
109 | el.innerHTML = value or '' | 112 | el.innerHTML = value or '' |
110 | value: (el, value) -> | 113 | value: (el, value) -> | ... | ... |
-
Please register or sign in to post a comment