From 19c204b2aa00b8e10e77220b72bd4518ef1909c8 Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Sun, 13 Mar 2016 14:37:32 -0400 Subject: [PATCH] note findings on acceptable attributes --- editor.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor.coffee b/editor.coffee index 7ef8e37..72ec0c6 100644 --- a/editor.coffee +++ b/editor.coffee @@ -19,7 +19,7 @@ overlay_padding = 10 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].' -- 1.7.10.4