Skip to content

Commit

Permalink
uzu innerText, ĉar ĉe textConent FF prenus ankaŭ SVG/text
Browse files Browse the repository at this point in the history
  • Loading branch information
wdiestel committed Aug 4, 2024
1 parent a852af9 commit 170af9f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions jsc/a/artikolo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -495,9 +495,10 @@ export namespace artikolo {
}

function desegnu_gestojn(tk: Element) {
if (!tk.closest("dd").classList.contains("kasxita")) { // dum kaŝita ni ankoraŭ ne transformas
if (tk instanceof HTMLElement
&& !tk.closest("dd").classList.contains("kasxita")) { // dum kaŝita ni ankoraŭ ne transformas
// povas esti pluraj apartigitaj per komo aŭ almenaŭ spaco
const sgn = tk.textContent;
const sgn = tk.innerText;
tk.textContent = '';
const sgn_kod = tk.getAttribute("data-kod");
if (sgn_kod[0] == 'M') {
Expand Down

0 comments on commit 170af9f

Please sign in to comment.