Created attachment 157908 [details] Demonstrates incorrect value for textNode.getNumberOfChars() To reproduce: 1. Dynamically create an SVG node, an SVG text node, and a text element 2. Add the text "hello" to the text element, and append the text element to the text node, and the text node to the svg node. 3. On the text node call getNumberOfChars() What is the expected result? 5, the number of characters in "hello" What happens instead? 0
First the attached test case is in Quirks mode (although downloading and adding DOCTYPE also have same result across all browsers) and I am getting following in console across browsers: *** Safari 15.5 on macOS 12.4 **** Unappended Node. Expecting 5, but is actually: 0 Appended Node. Expecting 5, but is actually: 5 *** Chrome Canary 105 **** Unappended Node. Expecting 5, but is actually: 0 Appended Node. Expecting 5, but is actually: 5 *** Firefox Nightly 104 **** Unappended Node. Expecting 5, but is actually: 0 Appended Node. Expecting 5, but is actually: 5 Since it is consistent across all browsers, I think this can be considered as "RESOLVED WONTFIX" or "RESOLVED INVALID". Thanks!