elm-html-parser icon indicating copy to clipboard operation
elm-html-parser copied to clipboard

Shouldn't parse return a Result?

Open Euregan opened this issue 8 years ago • 0 comments

Shouldn't parse return a Result rather than a List Node ? I was using the lib to write a Chrome extension that parsed the tab's DOM, and it just returns [] if the DOM is malformed, which could be handled more gracefully than an empty list check. That would also introduce the possibility of the parsing failing because of the DOM. I understand though that this is a major breaking change :(

Euregan avatar Aug 18 '17 09:08 Euregan