about summary refs log tree commit diff stats
path: root/src/html/catom.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/html/catom.nim')
-rw-r--r--src/html/catom.nim6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/html/catom.nim b/src/html/catom.nim
index 046b37dc..4a0b4f65 100644
--- a/src/html/catom.nim
+++ b/src/html/catom.nim
@@ -43,6 +43,7 @@ macro makeStaticAtom =
       satEnctype = "enctype"
       satError = "error"
       satEvent = "event"
+      satEvents = "events"
       satFor = "for"
       satForm = "form"
       satFormaction = "formaction"
@@ -92,6 +93,7 @@ macro makeStaticAtom =
       satSrcset = "srcset"
       satStyle = "style"
       satStylesheet = "stylesheet"
+      satSvgevents = "svgevents"
       satTarget = "target"
       satText = "text"
       satTimeout = "timeout"
@@ -99,6 +101,7 @@ macro makeStaticAtom =
       satTouchmove = "touchmove"
       satTouchstart = "touchstart"
       satType = "type"
+      satUEvent = "Event"
       satUsemap = "usemap"
       satUsername = "username"
       satValign = "valign"
@@ -216,6 +219,9 @@ var getFactoryImpl*: proc(ctx: JSContext): CAtomFactory {.nimcall, noSideEffect,
 proc toAtom*(ctx: JSContext; atom: StaticAtom): CAtom =
   return ctx.getFactoryImpl().toAtom(atom)
 
+proc toAtom*(ctx: JSContext; s: string): CAtom =
+  return ctx.getFactoryImpl().toAtom(s)
+
 proc toStaticAtom*(ctx: JSContext; atom: CAtom): StaticAtom =
   return ctx.getFactoryImpl().toStaticAtom(atom)