Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
peach-html5-editor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4f6b760
)
fix is_input_hidden_tok
author
Jason Woofenden
<jason@jasonwoof.com>
Wed, 23 Dec 2015 21:15:02 +0000
(16:15 -0500)
committer
Jason Woofenden
<jason@jasonwoof.com>
Wed, 23 Dec 2015 21:15:02 +0000
(16:15 -0500)
parse-html.coffee
patch
|
blob
|
history
diff --git
a/parse-html.coffee
b/parse-html.coffee
index
255892f
..
fee4202
100644
(file)
--- a/
parse-html.coffee
+++ b/
parse-html.coffee
@@
-195,8
+195,8
@@
is_space_tok = (t) ->
return t.type is TYPE_TEXT && t.text.length is 1 and space_chars.indexOf(t.text) > -1
is_input_hidden_tok = (t) ->
- return unless t.type is TYPE_START_TAG
- for a of t.attrs_a
+ return false unless t.type is TYPE_START_TAG
+ for a in t.attrs_a
if a[0] is 'type'
if a[1].toLowerCase() is 'hidden'
return true