t2ym/i18n-number

[3.0] this.textNode is incorrectly set if childNodes[0] is not a text node

Closed this issue · 0 comments

t2ym commented

[3.0] this.textNode is incorrectly set if childNodes[0] is not a text node

Root Cause

  • Checking for nodeType === TEXT_NODE is missing and childNodes[0] is hard-coded

Fix

  • Search for the first text node in childNodes