diff options
Diffstat (limited to 'src/html')
| -rw-r--r-- | src/html/chadombuilder.nim | 2 | ||||
| -rw-r--r-- | src/html/dom.nim | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/html/chadombuilder.nim b/src/html/chadombuilder.nim index e202bc50..221cf7f8 100644 --- a/src/html/chadombuilder.nim +++ b/src/html/chadombuilder.nim @@ -170,6 +170,8 @@ proc insertTextImpl(builder: ChaDOMBuilder, parent: Node, text: string, parent.lastChild if prevSibling != nil and prevSibling of Text: Text(prevSibling).data &= text + if parent of Element: + Element(parent).invalid = true else: let text = builder.document.createTextNode(text) discard parent.insertBefore(text, before.get(nil)) diff --git a/src/html/dom.nim b/src/html/dom.nim index cb0c41d8..622331a2 100644 --- a/src/html/dom.nim +++ b/src/html/dom.nim @@ -177,7 +177,7 @@ type all_cached: HTMLAllCollection cachedSheets: seq[CSSStylesheet] - cachedSheetsInvalid: bool + cachedSheetsInvalid*: bool children_cached: HTMLCollection #TODO I hate this but I really don't want to put chadombuilder into dom too parser*: pointer |