diff options
author | bptato <nincsnevem662@gmail.com> | 2022-12-19 23:36:16 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-12-19 23:36:16 +0100 |
commit | 91d18d27e4eeebb5aa685b18b28130f3f1b4f513 (patch) | |
tree | 1bc2e19608b576582bb1edc3f0b18aed0eef477c /src/html | |
parent | ea9df035a294bf1cfa715c140d0d22aa018e262e (diff) | |
download | chawan-91d18d27e4eeebb5aa685b18b28130f3f1b4f513.tar.gz |
Add unicode normalization, etc
Diffstat (limited to 'src/html')
-rw-r--r-- | src/html/dom.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/html/dom.nim b/src/html/dom.nim index ed96173d..dd273b71 100644 --- a/src/html/dom.nim +++ b/src/html/dom.nim @@ -774,14 +774,14 @@ func getElementsByClassName(node: Node, classNames: string): HTMLCollection {.js let isquirks = node.document.mode == QUIRKS if isquirks: for i in 0 .. classes.high: - classes[i].toLowerAsciiInPlace() + classes[i].mtoLowerAscii() return newCollection[HTMLCollection](node, func(node: Node): bool = if node.nodeType == ELEMENT_NODE: if isquirks: var cl = Element(node).classList for i in 0 .. cl.high: - cl[i].toLowerAsciiInPlace() + cl[i].mtoLowerAscii() for class in classes: if class notin cl: return false |