mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
use single quotes consistently
This commit is contained in:
@@ -59,6 +59,6 @@ const xmlWithNs = '<?xml version="1.0" encoding="UTF-8"?>' +
|
||||
const xmlDocWithNs = libxmljs.parseXml(xmlWithNs);
|
||||
|
||||
// xpath queries
|
||||
const gchildWithNs = xmlDocWithNs.get('//a:grandchild', {a: "http://test.com/test"})!;
|
||||
const gchildWithNs = xmlDocWithNs.get('//a:grandchild', {a: 'http://test.com/test'})!;
|
||||
|
||||
console.log(gchildWithNs.text()); // prints "grandchild content"
|
||||
|
||||
Reference in New Issue
Block a user