You cannot append text elements to rect elements.,Instead, you should keep them as separate children of the parent g:
確定! 回上一頁