DOCTYPE statement with external identifier getting trimmed to `<DOCTYPE html>` · Issue #130 · jonkemp/inline-css · GitHub
More Web Proxy on the site http://driver.im/
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
It seems that inline-css is truncating the "external identifier" part of DOCTYPE.
Consider this example
constinlineCss=require('inline-css')inlineCss('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html></html>',{url:'file://test.html'}).then(console.debug)// <!DOCTYPE html><html><head></head><body></body></html>
Versions:
Node: v20.12.0
inline-css: 4.0.2
While browsers ignore most parts of DOCTYPE, this may be relevant for emails. I suspect this comes from Cheerio, but since inline-css puts more focus on emails, figured it may be more relevant to ask here. Is this the expected behavior?
The text was updated successfully, but these errors were encountered:
It seems that
inline-css
is truncating the "external identifier" part of DOCTYPE.Consider this example
Versions:
While browsers ignore most parts of DOCTYPE, this may be relevant for emails. I suspect this comes from Cheerio, but since
inline-css
puts more focus on emails, figured it may be more relevant to ask here. Is this the expected behavior?The text was updated successfully, but these errors were encountered: