New issue
Advanced search Search tips

Issue 898376 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 897373
Owner: ----
Closed: Oct 28
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 3
Type: Bug



Sign in to add a comment

innerText returns with unexpected \t for <table>

Project Member Reported by chaopeng@chromium.org, Oct 24

Issue description

Chrome Version: 70.0.3538.67 (Official Build) (64-bit) and 72.0.3589.0 (Official Build) canary (64-bit)
OS: Mac

What steps will reproduce the problem?
(1) open https://jsfiddle.net/4qt7zwL2/
(2) open devtools / console select result frame in the dropdown
(3) Run following js

```
let tb = document.getElementById('tb')
tb.rows[1].cells[0].innerText
tb.rows[1].cells[0].innerHTML
tb.rows[1].cells[1].innerText
tb.rows[1].cells[1].innerHTML
```

What is the expected result?

```
"January"
"January"
"$100"
"$100"
```

What happens instead?

```
"January	"
"January"
"$100"
"$100"
```

tb.rows[1].cells[0].innerText returns with unexpected \t

 
Components: -Blink>JavaScript>API Blink>HTML>Table
Mergedinto: 897373
Status: Duplicate (was: Untriaged)

Sign in to add a comment