Closed dsmoosh0 closed 10 years ago
Thanks for your contribution! I've added a unit test and as soon as Travis passes one more time I'll push to NPM.
Nice! Thanks for compacting the code! ;)
Hmm seems that parser options are being ignored completely. Anyone else experiencing this problem?
Can you provide a (non)working example? I've never had a need for parsing options, so testing is kind of strange for me.
Yeah sure. A very simple example would be this:
<html>
<body>
<p></p>
<br/>
<p></p>
</body>
</html>
Now for example try to set text on the <p>
tag via cheerio. The output HTML doesn't contain self closing <br/>
tags.
They just look like this: <br>
But what I do need here is this: <br/>
Passing recognizeSelfClosing: true
to parser options should normally fix this problem.
Can you reproduce this?
I'll have to take a look at this later today. I'll get back to you.
Ok thank you! :)
Found anything?
Sorry, I've been really busy. It's on my todo list though.
Overdue, as you can see...
Ye no problem.
Unfortunately I couldn't test this one. But I need the parser options very badly. Especially for parsing camel case tags and self closing tags.
Check for run function and options could be done better. But it's just quick and dirty.