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 (parent:
060c37f
)
note findings on acceptable attributes
author
Jason Woofenden
<jason@jasonwoof.com>
Sun, 13 Mar 2016 18:37:32 +0000
(14:37 -0400)
committer
Jason Woofenden
<jason@jasonwoof.com>
Sun, 13 Mar 2016 18:37:32 +0000
(14:37 -0400)
editor.coffee
patch
|
blob
|
history
diff --git
a/editor.coffee
b/editor.coffee
index
7ef8e37
..
72ec0c6
100644
(file)
--- a/
editor.coffee
+++ b/
editor.coffee
@@
-19,7
+19,7
@@
overlay_padding = 10
timeout = (ms, cb) -> return setTimeout cb, ms
timeout = (ms, cb) -> return setTimeout cb, ms
-# xml 1.0 says:
+# xml 1.0 spec, chromium and firefox accept these, plus lots of unicode chars
valid_attr_regex = new RegExp '^[a-zA-Z_:][-a-zA-Z0-9_:.]*$'
# html5 spec is much more lax, but chromium won't let me make at attribute with the name "4"
js_attr_regex = new RegExp '^[oO][nN].'
valid_attr_regex = new RegExp '^[a-zA-Z_:][-a-zA-Z0-9_:.]*$'
# html5 spec is much more lax, but chromium won't let me make at attribute with the name "4"
js_attr_regex = new RegExp '^[oO][nN].'