You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Regression
Was this working before but has regressed? Yes
If yes, what version did this last work on? Runtime: 115.0.1901.203
Repro Steps
Open url http://date.jsontest.com using edge.
Go to inspect->console, run document.documentElement.innerText
Additional context
We got the issue first with our c# code:
CoreWebView2.ExecuteScriptAsync("JSON.parse(document.documentElement.innerText)").
The additional characters in the returned string broke the json format.
The text was updated successfully, but these errors were encountered:
Description
document.documentElement.innerText returns additional at the beginning of the returned string.
Open url http://date.jsontest.com using edge.
Go to inspect->console, run document.documentElement.innerText
Expected result:
'{\n "date": "08-22-2023",\n "milliseconds_since_epoch": 1692669570858,\n "time": "01:59:30 AM"\n}\n'
Actual result:
'1\n2\n3\n4\n5\n{\n "date": "08-22-2023",\n "milliseconds_since_epoch": 1692668052676,\n "time": "01:34:12 AM"\n}'
A "12345" was added at the beginning of the string which seems like the number of the lines of innerText.
For example, the url http://echo.jsontest.com/key/value/one/two, document.documentElement.innerText returns below:
'1\n2\n3\n4\n{\n "one": "two",\n "key": "value"\n}'
Version
Runtime: 116.0.1938.54
OS: Windows 10
Regression
Was this working before but has regressed? Yes
If yes, what version did this last work on? Runtime: 115.0.1901.203
Repro Steps
Open url http://date.jsontest.com using edge.
Go to inspect->console, run document.documentElement.innerText
Additional context
We got the issue first with our c# code:
CoreWebView2.ExecuteScriptAsync("JSON.parse(document.documentElement.innerText)").
The additional characters in the returned string broke the json format.
The text was updated successfully, but these errors were encountered: