insertRow called under shadowDOM v1 results in empty childNodes array on parents
Reported by
mw...@pint.com,
Oct 20 2016
|
||||
Issue description
UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/53.0.2785.143 Chrome/53.0.2785.143 Safari/537.36
Steps to reproduce the problem:
```js
var x = document.createElement('div');
x.attachShadow({mode:'open'});
var shadowRoot = x.shadowRoot;
shadowRoot.appendChild(document.createElement('table'));
shadowRoot.firstChild.insertRow();
console.log(shadowRoot.firstChild.childElementCount); // correctly returns 1
console.log(shadowRoot.firstChild.childNodes); // incorrectly returns [ ] instead of [<tbody></tbody>]
```
What is the expected behavior?
childNodes/children should return an array with the elements added through insertRow
What went wrong?
`shadowRoot.firstChild.childElementCount` correctly returns
`shadowRoot.firstChild.childNodes);` incorrectly returns [ ] instead of [<tbody></tbody>]
Did this work before? No
Does this work in other browsers? N/A
Chrome version: 53.0.2785.143 Channel: n/a
OS Version: Ubuntu 16.04
Flash Version: Shockwave Flash 17.0 r0
`childNodes` returns correct array under v0 implementation.
`childNodes` returns correct array if appendChild(document.createElement('tr')) was used instead.
,
Oct 20 2016
,
Oct 21 2016
Unable to reproduce the issue on Ubuntu 14.04 using chrome reported version #53.0.2785.143 and chrome stable #54.0.2840.71 as per comment #0 Attached a screen cast for reference. Reporter@ - Could you please check this issue on chrome stable #54.0.2840.71 by creating a new profile without any apps and extensions and please let us know if the issue still persist or not.
,
Nov 21 2016
I cannot reproduce this in Chrome 55.0.2883.54 (Official Build) beta (64-bit): http://jsbin.com/mohalitege/1/edit?html,output Outputs 1,1,[object HTMLTableSectionElement] which is what I would expect. |
||||
►
Sign in to add a comment |
||||
Comment 1 by mw...@pint.com
, Oct 20 2016