X-Git-Url: http://git.scottworley.com/vopamoi/blobdiff_plain/187164d50f67ca24cf7769c2d1746caae51f72b7..54c191805520acf16e11b41f812571cfaf93706f:/vopamoi.ts?ds=sidebyside diff --git a/vopamoi.ts b/vopamoi.ts index d0f4fa1..cbb9af2 100644 --- a/vopamoi.ts +++ b/vopamoi.ts @@ -80,8 +80,8 @@ const Model = { }, hasTag: function (task: Element, tag: string): Element | null { - for (const child of task.children) { - if (child.classList.contains("tag") && child.textContent === tag) { + for (const child of task.getElementsByClassName("tag")) { + if (child.textContent === tag) { return child; } }