mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-08 04:44:20 +00:00
committed by
GitHub
parent
3cc547f2df
commit
295429f425
@@ -335,6 +335,8 @@
|
||||
|
||||
- Added setCurrentException for JS backend.
|
||||
|
||||
- Added `dom.scrollIntoView` proc with options
|
||||
|
||||
## Language changes
|
||||
|
||||
- `nimscript` now handles `except Exception as e`.
|
||||
|
||||
@@ -1317,6 +1317,11 @@ type
|
||||
ready*: FontFaceSetReady
|
||||
onloadingdone*: proc(event: Event)
|
||||
|
||||
ScrollIntoViewOptions* = object
|
||||
behavior*: cstring
|
||||
`block`*: cstring
|
||||
inline*: cstring
|
||||
|
||||
since (1, 3):
|
||||
type
|
||||
DomParser* = ref object
|
||||
@@ -1538,6 +1543,7 @@ proc removeAttribute*(n: Node, attr: cstring)
|
||||
proc removeAttributeNode*(n, attr: Node)
|
||||
proc replaceData*(n: Node, start, len: int, text: cstring)
|
||||
proc scrollIntoView*(n: Node)
|
||||
proc scrollIntoView*(n: Node, options: ScrollIntoViewOptions)
|
||||
proc setAttribute*(n: Node, name, value: cstring)
|
||||
proc setAttributeNode*(n: Node, attr: Node)
|
||||
proc querySelector*(n: Node, selectors: cstring): Element
|
||||
|
||||
Reference in New Issue
Block a user