New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 760365 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 736430
Owner:
Closed: Sep 2017
Cc:
Components:
EstimatedDays: ----
NextAction: 2017-09-26
OS: Windows
Pri: 2
Type: Bug-Regression



Sign in to add a comment

It is taking care innerhtml element properly

Reported by ankurtha...@gmail.com, Aug 29 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36

Steps to reproduce the problem:
Now it is showing for error for innerhtml for our site , which we preferred to run with chrome

vendor-69eb65ec88f18061d1d365cd0a76e910.js:10 TypeError: Cannot read property 'innerHTML' of undefined

What is the expected behavior?

What went wrong?
Now it is showing for error for innerhtml for our site , which we preferred to run with chrome

vendor-69eb65ec88f18061d1d365cd0a76e910.js:10 TypeError: Cannot read property 'innerHTML' of undefined

Did this work before? Yes 59.0.3071.115

Chrome version: 60.0.3112.113  Channel: stable
OS Version: 6.3
Flash Version:
 
Cc: susanjuniab@chromium.org
Labels: Needs-Triage-M60 Needs-Feedback
ankurthakkardds1@ Please provide us the sample html file and and the exact repro steps for further triaging of this issue.

Thanks..
NextAction: 2017-09-13
I will post sample html file but i am posting here with logs and details where we are facing problem with new chroome version. 
Please respond as our clients to using chroome on pour recommendation , as we prefer chroome browser for our web application(SPA's in ember).

It appears , it is jquery $find() is not working any more as expected with new chroome version. See below code and console log showing  find for "GetAttributeListResponse" element from XML response is not working with version 61.0.3163.79 as expected.

Here is my code, including console log statements :-

var innerXml = $($.parseXML(payload.firstChild.innerHTML)).find('GetAttributeListResponse');
        console.log('parseXML response ',$.parseXML(payload.firstChild.innerHTML));
        console.log('find GetAttributeListResponse ',$($.parseXML(payload.firstChild.innerHTML)).find('GetAttributeListResponse'));
        console.log('length of innerxml',innerXml.length);



and console output with Version 59.0.3071.115 (Official Build) (64-bit) :-

parseXML response :-  #document<soap:Body xmlns:soap=​"http:​/​/​schemas.xmlsoap.org/​soap/​envelope/​">​<ns2:GetAttributeListResponse xmlns:ns2=​"http:​/​/​com.dds.osp.itaxi.interface/​">​<GetAttrListResponse>​<request_status>​0​</request_status>​<error_string>​Success​</error_string>​<nofAttributes>​6​</nofAttributes>​<listOfAttributes>​…​</listOfAttributes>​<listOfAttributes>​…​</listOfAttributes>​<listOfAttributes>​…​</listOfAttributes>​<listOfAttributes>​…​</listOfAttributes>​<listOfAttributes>​…​</listOfAttributes>​<listOfAttributes>​…​</listOfAttributes>​<errorCode>​0​</errorCode>​</GetAttrListResponse>​</ns2:GetAttributeListResponse>​</soap:Body>​

attribute-list.js:16 find GetAttributeListResponse :-  [ns2:getattributelistresponse, prevObject: jQuery.fn.init(1), context: document, selector: "GetAttributeListResponse"]0: ns2:getattributelistresponseassignedSlot: nullattributes: NamedNodeMapbaseURI: "http://mji.ddswireless.com:4200/csvimport"childElementCount: 1childNodes: NodeList(1)children: HTMLCollection(1)classList: DOMTokenList(0)className: ""clientHeight: 0clientLeft: 0clientTop: 0clientWidth: 0firstChild: getattrlistresponsefirstElementChild: getattrlistresponseid: ""innerHTML: "<GetAttrListResponse><request_status>0</request_status><error_string>Success</error_string><nofAttributes>6</nofAttributes><listOfAttributes><attrShortName>D_11</attrShortName><attrLongName>PETS D</attrLongName><attrWebBooker>Y</attrWebBooker><taxi_company_id>2</taxi_company_id></listOfAttributes><listOfAttributes><attrShortName>D_3</attrShortName><attrLongName>DELIVERY TRIP</attrLongName><attrWebBooker>Y</attrWebBooker><taxi_company_id>2</taxi_company_id></listOfAttributes><listOfAttributes><attrShortName>V_2</attrShortName><attrLongName>INFANT SEAT</attrLongName><attrWebBooker>Y</attrWebBooker><taxi_company_id>2</taxi_company_id></listOfAttributes><listOfAttributes><attrShortName>V_3</attrShortName><attrLongName>TODDLER SEAT</attrLongName><attrWebBooker>Y</attrWebBooker><taxi_company_id>2</taxi_company_id></listOfAttributes><listOfAttributes><attrShortName>V_4</attrShortName><attrLongName>SEDAN 4 SEAT</attrLongName><attrWebBooker>Y</attrWebBooker><taxi_company_id>2</taxi_company_id></listOfAttributes><listOfAttributes><attrShortName>V_6</attrShortName><attrLongName>PETS V</attrLongName><attrWebBooker>Y</attrWebBooker><taxi_company_id>2</taxi_company_id></listOfAttributes><errorCode>0</errorCode></GetAttrListResponse>"isConnected: truelastChild: getattrlistresponselastElementChild: getattrlistresponselocalName: "GetAttributeListResponse"namespaceURI: "http://com.dds.osp.itaxi.interface/"nextElementSibling: nullnextSibling: nullnodeName: "ns2:GetAttributeListResponse"nodeType: 1nodeValue: nullonbeforecopy: nullonbeforecut: nullonbeforepaste: nulloncopy: nulloncut: nullonpaste: nullonsearch: nullonselectstart: nullonwebkitfullscreenchange: nullonwebkitfullscreenerror: nullonwheel: nullouterHTML: "<ns2:GetAttributeListResponse xmlns:ns2="http://com.dds.osp.itaxi.interface/"><GetAttrListResponse><request_status>0</request_status><error_string>Success</error_string><nofAttributes>6</nofAttributes><listOfAttributes><attrShortName>D_11</attrShortName><attrLongName>PETS D</attrLongName><attrWebBooker>Y</attrWebBooker><taxi_company_id>2</taxi_company_id></listOfAttributes><listOfAttributes><attrShortName>D_3</attrShortName><attrLongName>DELIVERY TRIP</attrLongName><attrWebBooker>Y</attrWebBooker><taxi_company_id>2</taxi_company_id></listOfAttributes><listOfAttributes><attrShortName>V_2</attrShortName><attrLongName>INFANT SEAT</attrLongName><attrWebBooker>Y</attrWebBooker><taxi_company_id>2</taxi_company_id></listOfAttributes><listOfAttributes><attrShortName>V_3</attrShortName><attrLongName>TODDLER SEAT</attrLongName><attrWebBooker>Y</attrWebBooker><taxi_company_id>2</taxi_company_id></listOfAttributes><listOfAttributes><attrShortName>V_4</attrShortName><attrLongName>SEDAN 4 SEAT</attrLongName><attrWebBooker>Y</attrWebBooker><taxi_company_id>2</taxi_company_id></listOfAttributes><listOfAttributes><attrShortName>V_6</attrShortName><attrLongName>PETS V</attrLongName><attrWebBooker>Y</attrWebBooker><taxi_company_id>2</taxi_company_id></listOfAttributes><errorCode>0</errorCode></GetAttrListResponse></ns2:GetAttributeListResponse>"ownerDocument: documentparentElement: soap:bodyparentNode: soap:bodyprefix: "ns2"previousElementSibling: nullpreviousSibling: nullscrollHeight: 0scrollLeft: 0scrollTop: 0scrollWidth: 0shadowRoot: nullslot: ""tagName: "ns2:GetAttributeListResponse"textContent: "0Success6D_11PETS DY2D_3DELIVERY TRIPY2V_2INFANT SEATY2V_3TODDLER SEATY2V_4SEDAN 4 SEATY2V_6PETS VY20"__proto__: Elementcontext: documentlength: 1prevObject: jQuery.fn.init(1)selector: "GetAttributeListResponse"__proto__: Object(0)

attribute-list.js:17 length of innerxml :- 1

and console output with Version 61.0.3163.79 (Official Build) (64-bit) :-

parseXML response :-  #document<soap:Body xmlns:soap=​"http:​/​/​schemas.xmlsoap.org/​soap/​envelope/​">​<ns2:GetAttributeListResponse xmlns:ns2=​"http:​/​/​com.dds.osp.itaxi.interface/​">​<GetAttrListResponse>​…​</GetAttrListResponse>​</ns2:GetAttributeListResponse>​</soap:Body>​

attribute-list.js:16 find GetAttributeListResponse :-  [prevObject: jQuery.fn.init(1), context: document, selector: "GetAttributeListResponse"]context: documentlength: 0prevObject: [document, context: document]selector: "GetAttributeListResponse"__proto__: Object(0)

attribute-list.js:17 length of innerxml :- 0
Project Member

Comment 4 by sheriffbot@chromium.org, Sep 8 2017

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "susanjuniab@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Components: -Blink Blink>DOM

Comment 6 by hayato@chromium.org, Sep 11 2017

Components: -Blink>DOM Blink
Labels: Needs-Feedback
It looks we still need feedback.
I think no one can start to reproduce the error, with the information of comment #3.
It look like issue with jquery .find() methodPlease see below details :-

I will post sample html file but i am posting here with logs and details where we are facing problem with new chroome version. 
Please respond as our clients to using chroome on pour recommendation , as we prefer chroome browser for our web application(SPA's in ember).

It appears , it is jquery $find() is not working any more as expected with new chroome version. See below code and console log showing  find for "GetAttributeListResponse" element from XML response is not working with version 61.0.3163.79 as expected.

Here is my code, including console log statements :-

var innerXml = $($.parseXML(payload.firstChild.innerHTML)).find('GetAttributeListResponse');
        console.log('parseXML response ',$.parseXML(payload.firstChild.innerHTML));
        console.log('find GetAttributeListResponse ',$($.parseXML(payload.firstChild.innerHTML)).find('GetAttributeListResponse'));
        console.log('length of innerxml',innerXml.length);



and console output with Version 59.0.3071.115 (Official Build) (64-bit) :-

parseXML response :-  #document<soap:Body xmlns:soap=​"http:​/​/​schemas.xmlsoap.org/​soap/​envelope/​">​<ns2:GetAttributeListResponse xmlns:ns2=​"http:​/​/​com.dds.osp.itaxi.interface/​">​<GetAttrListResponse>​<request_status>​0​</request_status>​<error_string>​Success​</error_string>​<nofAttributes>​6​</nofAttributes>​<listOfAttributes>​…​</listOfAttributes>​<listOfAttributes>​…​</listOfAttributes>​<listOfAttributes>​…​</listOfAttributes>​<listOfAttributes>​…​</listOfAttributes>​<listOfAttributes>​…​</listOfAttributes>​<listOfAttributes>​…​</listOfAttributes>​<errorCode>​0​</errorCode>​</GetAttrListResponse>​</ns2:GetAttributeListResponse>​</soap:Body>​

attribute-list.js:16 find GetAttributeListResponse :-  [ns2:getattributelistresponse, prevObject: jQuery.fn.init(1), context: document, selector: "GetAttributeListResponse"]0: ns2:getattributelistresponseassignedSlot: nullattributes: NamedNodeMapbaseURI: "http://mji.ddswireless.com:4200/csvimport"childElementCount: 1childNodes: NodeList(1)children: HTMLCollection(1)classList: DOMTokenList(0)className: ""clientHeight: 0clientLeft: 0clientTop: 0clientWidth: 0firstChild: getattrlistresponsefirstElementChild: getattrlistresponseid: ""innerHTML: "<GetAttrListResponse><request_status>0</request_status><error_string>Success</error_string><nofAttributes>6</nofAttributes><listOfAttributes><attrShortName>D_11</attrShortName><attrLongName>PETS D</attrLongName><attrWebBooker>Y</attrWebBooker><taxi_company_id>2</taxi_company_id></listOfAttributes><listOfAttributes><attrShortName>D_3</attrShortName><attrLongName>DELIVERY TRIP</attrLongName><attrWebBooker>Y</attrWebBooker><taxi_company_id>2</taxi_company_id></listOfAttributes><listOfAttributes><attrShortName>V_2</attrShortName><attrLongName>INFANT SEAT</attrLongName><attrWebBooker>Y</attrWebBooker><taxi_company_id>2</taxi_company_id></listOfAttributes><listOfAttributes><attrShortName>V_3</attrShortName><attrLongName>TODDLER SEAT</attrLongName><attrWebBooker>Y</attrWebBooker><taxi_company_id>2</taxi_company_id></listOfAttributes><listOfAttributes><attrShortName>V_4</attrShortName><attrLongName>SEDAN 4 SEAT</attrLongName><attrWebBooker>Y</attrWebBooker><taxi_company_id>2</taxi_company_id></listOfAttributes><listOfAttributes><attrShortName>V_6</attrShortName><attrLongName>PETS V</attrLongName><attrWebBooker>Y</attrWebBooker><taxi_company_id>2</taxi_company_id></listOfAttributes><errorCode>0</errorCode></GetAttrListResponse>"isConnected: truelastChild: getattrlistresponselastElementChild: getattrlistresponselocalName: "GetAttributeListResponse"namespaceURI: "http://com.dds.osp.itaxi.interface/"nextElementSibling: nullnextSibling: nullnodeName: "ns2:GetAttributeListResponse"nodeType: 1nodeValue: nullonbeforecopy: nullonbeforecut: nullonbeforepaste: nulloncopy: nulloncut: nullonpaste: nullonsearch: nullonselectstart: nullonwebkitfullscreenchange: nullonwebkitfullscreenerror: nullonwheel: nullouterHTML: "<ns2:GetAttributeListResponse xmlns:ns2="http://com.dds.osp.itaxi.interface/"><GetAttrListResponse><request_status>0</request_status><error_string>Success</error_string><nofAttributes>6</nofAttributes><listOfAttributes><attrShortName>D_11</attrShortName><attrLongName>PETS D</attrLongName><attrWebBooker>Y</attrWebBooker><taxi_company_id>2</taxi_company_id></listOfAttributes><listOfAttributes><attrShortName>D_3</attrShortName><attrLongName>DELIVERY TRIP</attrLongName><attrWebBooker>Y</attrWebBooker><taxi_company_id>2</taxi_company_id></listOfAttributes><listOfAttributes><attrShortName>V_2</attrShortName><attrLongName>INFANT SEAT</attrLongName><attrWebBooker>Y</attrWebBooker><taxi_company_id>2</taxi_company_id></listOfAttributes><listOfAttributes><attrShortName>V_3</attrShortName><attrLongName>TODDLER SEAT</attrLongName><attrWebBooker>Y</attrWebBooker><taxi_company_id>2</taxi_company_id></listOfAttributes><listOfAttributes><attrShortName>V_4</attrShortName><attrLongName>SEDAN 4 SEAT</attrLongName><attrWebBooker>Y</attrWebBooker><taxi_company_id>2</taxi_company_id></listOfAttributes><listOfAttributes><attrShortName>V_6</attrShortName><attrLongName>PETS V</attrLongName><attrWebBooker>Y</attrWebBooker><taxi_company_id>2</taxi_company_id></listOfAttributes><errorCode>0</errorCode></GetAttrListResponse></ns2:GetAttributeListResponse>"ownerDocument: documentparentElement: soap:bodyparentNode: soap:bodyprefix: "ns2"previousElementSibling: nullpreviousSibling: nullscrollHeight: 0scrollLeft: 0scrollTop: 0scrollWidth: 0shadowRoot: nullslot: ""tagName: "ns2:GetAttributeListResponse"textContent: "0Success6D_11PETS DY2D_3DELIVERY TRIPY2V_2INFANT SEATY2V_3TODDLER SEATY2V_4SEDAN 4 SEATY2V_6PETS VY20"__proto__: Elementcontext: documentlength: 1prevObject: jQuery.fn.init(1)selector: "GetAttributeListResponse"__proto__: Object(0)

attribute-list.js:17 length of innerxml :- 1

and console output with Version 61.0.3163.79 (Official Build) (64-bit) :-

parseXML response :-  #document<soap:Body xmlns:soap=​"http:​/​/​schemas.xmlsoap.org/​soap/​envelope/​">​<ns2:GetAttributeListResponse xmlns:ns2=​"http:​/​/​com.dds.osp.itaxi.interface/​">​<GetAttrListResponse>​…​</GetAttrListResponse>​</ns2:GetAttributeListResponse>​</soap:Body>​

attribute-list.js:16 find GetAttributeListResponse :-  [prevObject: jQuery.fn.init(1), context: document, selector: "GetAttributeListResponse"]context: documentlength: 0prevObject: [document, context: document]selector: "GetAttributeListResponse"__proto__: Object(0)

attribute-list.js:17 length of innerxml :- 0
Project Member

Comment 8 by sheriffbot@chromium.org, Sep 11 2017

Cc: hayato@chromium.org
Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "hayato@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 9 by hayato@chromium.org, Sep 12 2017

Cc: -hayato@chromium.org
The NextAction date has arrived: 2017-09-13
Components: -Blink Blink>DOM
Labels: Needs-Feedback
NextAction: 2017-09-26
I susoect this is caused by https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAGH7WqGer9qu%3DWzdTA7TPTHAKyh19h3fz9FE-jbBynj6hqpTLw%40mail.gmail.com?utm_medium=email&utm_source=footer

which changed from Chrome 59 to Chrome 60.

Do you have any code that calls getElementsByTagName

see  issue 736430  for similar discussion
Owner: tkent@chromium.org
Status: Assigned (was: Unconfirmed)
tkent@, do you have any insight on this?

Comment 13 by tkent@chromium.org, Sep 19 2017

Mergedinto: 736430
Status: Duplicate (was: Assigned)
I agree with Comment 11.
getElementByTagName('GetAttributeListResponse') doesn't find <ns2:GetAttributeListResponse> any longer.  Probably find('GetAttributeListResponse') should be updated to find('ns2:GetAttributeListResponse')

Comment 14 Deleted

Appreciate your response and also your initiative to reach to depth of
problem.

I change code according comment #13 , as follows ,means to
find('ns2:GetAttributeListResponse'),
but it is not working with both Version 59.0.3071.115 and 61.0.3163.79 ,
Please look into this :-

var innerXml = $($.parseXML(payload.firstChild.innerHTML)).find('
ns2:GetAttributeListResponse');
 console.log('parseXML response ',$.parseXML(payload.firstChild.innerHTML));
console.log('find GetAttributeListResponse ',$($.parseXML(payload.
firstChild.innerHTML)).find('ns2:GetAttributeListResponse'));
console.log('length of innerxml',innerXml.length);


and console output with Version 59.0.3071.115  (Official Build) (64-bit)
and  Version 61.0.3163.79 (Official Build) (64-bit) :-

parseXML response :-  #document<soap:Body xmlns:soap=​"http:​/​/​schemas
.xmlsoap.org/​soap/​envelope/​">​<ns2:GetAttributeListResponse
xmlns:ns2=​"http:​/​/​com.dds.osp.itaxi.interface/​">​<
GetAttrListResponse>​<request_status>​0​</request_status>​<
error_string>​Success​</error_string>​<nofAttributes>​6​</nofAttributes>​<
listOfAttributes>​…​</listOfAttributes>​<listOfAttributes>​…​</
listOfAttributes>​<listOfAttributes>​…​</listOfAttributes>​<
listOfAttributes>​…​</listOfAttributes>​<listOfAttributes>​…​</
listOfAttributes>​<listOfAttributes>​…​</listOfAttributes>​<errorCode>​
0​</errorCode>​</GetAttrListResponse>​</ns2:GetAttributeListResponse>​</
soap:Body>​

find GetAttributeListResponse
[prevObject: jQuery.fn.init(1), context: document, selector: "ns2:GetAttributeListResponse"]
context
:
document
length
:
0
prevObject
:
jQuery.fn.init(1)
0
:
document
context
:
document
length
:
1
__proto__
:
Object(0)
selector
:
"ns2:GetAttributeListResponse"
__proto__
:
Object(0)

attribute-list.js length of innerxml 0

Comment 16 by tkent@chromium.org, Sep 22 2017

Sorry for an incorrect suggestion.  It seems we need to escape ':'.  So find('ns2\\:GetAttributeListResponse')

Thanks You  and Appreciate your response ☺

         We applied comment #16 suggestion by you and it is working .One
last question from where and how  we can know such changes details  or
upcoming changes details?

Comment 18 by tkent@chromium.org, Sep 24 2017

The following paragraph in Chrome 60 Beta announcement [1] represented this change:

> getElementsByTagName() now accepts qualified names in response to
> an update to the DOM specification.

However, it's hard to know the jquery's find() behavior change from this.  I strongly recommend web site owners and developers use Google Chrome Beta to find issues earlier. If bugs are filed in beta stage, we can cancel/postpone behavior changes


[1] https://blog.chromium.org/2017/06/chrome-60-beta-paint-timing-api-css.html

The NextAction date has arrived: 2017-09-26

Sign in to add a comment