From 5df4c760d36d056292161eef221165c9f41c6125 Mon Sep 17 00:00:00 2001 From: DK Liao Date: Fri, 11 Apr 2025 15:51:52 +0900 Subject: [PATCH] fix: Crashing due to input element hack (#36461) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR addresses a crash in text input element due to a hack to prevent text input being trimmed. The updated behavior will only add `zero width space` unicode character to the node if there's no text content instead of adding it constantly. Also by adding the same `zero width space` unicode character to text area when there's no text content within will allow text area element to properly display caret. 截圖 2025-04-11 中午12 51 00 This PR also addresses issues with multiple glyph runs: https://github.com/user-attachments/assets/658db56f-b166-47ec-bc77-c6c13114d669 Testing: This PR is tested using: - `./mach run -d 'data:text/html,'` - `./mach run -d 'data:text/html,