You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whacko(/Parse5 (?)) strips out SYSTEM when parsing the HTML5 doctype legacy string; Cheerio doesn't:
$ node
> require('cheerio').load('<!DOCTYPE html SYSTEM "about:legacy-compat"><html><head></head><body>Hi there!</body></html>')(':root')[0].prev.data
'!DOCTYPE html SYSTEM "about:legacy-compat"'
> require('whacko').load('<!DOCTYPE html SYSTEM "about:legacy-compat"><html><head></head><body>Hi there!</body></html>')(':root')[0].prev.data
'!DOCTYPE html "about:legacy-compat"'
Versions I'm using:
cheerio@0.18.0
whacko@0.17.4
The text was updated successfully, but these errors were encountered:
Whacko(/Parse5 (?)) strips out
SYSTEM
when parsing the HTML5 doctype legacy string; Cheerio doesn't:Versions I'm using:
The text was updated successfully, but these errors were encountered: