CssToInlineStyles icon indicating copy to clipboard operation
CssToInlineStyles copied to clipboard

Prevention of Uncaught TypeError

Open stefanpols opened this issue 7 years ago • 1 comments

Added an empty check in the convert function. If an empty HTML is given an Uncaught TypeError will be throw at $document->removeChild($htmlElement), because $htmlElement is null instead of a DOMNode instance.

stefanpols avatar Jan 11 '18 22:01 stefanpols

I think it's right that it crashes if you give it something that is not html? Maybe we just need to make it crash nicer. ;)

GrahamCampbell avatar Dec 27 '19 10:12 GrahamCampbell