node-beml icon indicating copy to clipboard operation
node-beml copied to clipboard

Failing on inverted quotes

Open pepelsbey opened this issue 10 years ago • 3 comments

Unfortunately it’s quite common pattern people copy from the spec:

<source src="video/windowsill.ogv" type='video/ogg; codecs="theora, vorbis"'>

And I see the following error:

/Users/pepelsbey/Projects/Opera/Dev.Opera/Site/node_modules/gulp-beml/node_modules/map-stream/index.js:103
        throw err
        ^
Error: Parse Error: <source src="video/windowsill.webm" type="video/webm; codecs="vp8, vorbis"">
        <source src="video/windowsill.ogv" type="video/ogg; codecs='theora, vorbis'">
      </video>
      </div>
    </div>

pepelsbey avatar Oct 08 '15 21:10 pepelsbey

In my case single quotes are replaced by double quotes. But without crashing. I know this bug as https://github.com/cheeriojs/cheerio/issues/720. I can't fix it.

maxpoletaev avatar Oct 10 '15 08:10 maxpoletaev

:(

voischev avatar Oct 10 '15 09:10 voischev

Sorry for calling it a crash, this is just my build failing. The rest is the same as in your case. Is there any other good alternative to cheerio? This is a serious ussue, since I should maintain a certain code quality to be able to use BEML :\

pepelsbey avatar Oct 10 '15 11:10 pepelsbey