X-Git-Url: https://jasonwoof.com/gitweb/?p=peach-html5-editor.git;a=blobdiff_plain;f=editor.coffee;h=72ec0c6130a892929a49c85ac435529f58d5c49e;hp=7ef8e37cc3ba42548625da61ec02ccdafcb3747b;hb=19c204b2aa00b8e10e77220b72bd4518ef1909c8;hpb=060c37f53ad12694bd1d37f405aba965b8af9966 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].'