isMeCoder
5bca979247
.html() can return null
...
.html() can return null when querying an element that does not exist.
Repro:
const response = await axios.default.get('https://www.google.com/ ')
const $ = cheerio.load(response.data)
const foo = $('.bar').html()
console.log(`foo is: ${foo}`) //foo is: null
2017-10-30 10:11:20 -07:00
Li Jinyao
c3a393c3d4
[cheerio] add firstChild attribute to CheerioElement ( #20829 )
...
* add firstChild attribute in CheerioElement
* add credit
2017-10-27 16:54:18 -07:00
Andy
19f89399e4
Ensure every package has a tslint.json ( #21009 )
...
* Ensure every package has a tslint.json
* Fixes
2017-10-25 11:13:50 -07:00
Александр Гренишин
c939211aa6
fix(cheerio): #attr() can be used without arguments ( #20193 )
2017-10-09 16:30:37 -07:00
Andy
947a8fb761
Enable strictFunctionTypes ( #20373 )
2017-10-06 14:03:03 -07:00
Ika
98fdc33a53
test(cheerio): add tests
2017-07-04 23:57:48 +08:00
Ika
e23ee8a8dd
fix(cheerio): CheerioAPI should extend CheerioStatic
2017-07-04 23:55:07 +08:00
Alexey Pelykh
0d2658c362
Use hashmap signature instead of Object
2017-03-25 13:50:00 +02:00
Andy Hanson
354cec620d
Move all packages to a types directory
2017-03-24 14:27:52 -07:00