Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

XMLTools problem with Chrome 45

$
0
0
Hello,

Since the last version of Chrome (45), it seems it's not possible to get the value of an attribute in a XML document with a XPath query.

Here is a simple example to reproduce :

Code:

var xmlDoc = XMLTools.parseXML('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>' +
                                                                        '<values id="c730cd18">' +
                                                                        '        <value key="1" label="SOC I">TADA</value>' +
                                                                        '        <value key="2" label="SOC II">TODO</value>' +
                                                                        '</values>');
                                                       
var xpathResult1 = XMLTools.selectString(xmlDoc, '/values/value[1]/@label');
console.log("xpathResult1:", xpathResult1);

With all browsers except Chrome 45, the result will be : "xpathResult1: SOC I"

With Chrome 45 the result is : "xpathResult1: "

Tested and detected with SmartClient 8.3, the problem is the same with the last version of SmartClient.

It seems there is the same report on SmartGWT in this entry : http://forums.smartclient.com/showthread.php?t=33436

Is it a bug in SmartClient or in Chrome ?

Viewing all articles
Browse latest Browse all 4756

Trending Articles