cezheng / Fuzi

A fast & lightweight XML & HTML parser in Swift with XPath & CSS support
MIT License
1.08k stars 161 forks source link

prefix Crash #122

Closed flocked closed 2 years ago

flocked commented 2 years ago

When trying to use xPath on an xmlElement with following content I get a crash inside the withXMLChar() func at: if let prefix = ns.pointee.prefix {

The xmlElement where I try to get the poster value via xPath:

<video id="player" class="video-js vjs-sublime-skin vjs-big-play-centered"
     controls preload="none"
    poster="preview.jpg"
     data-setup='{}'>
       <source src="trailer.mp4" type='video/mp4'>
       <p class="vjs-no-js">To view this video please enable JavaScript, and consider upgrading to a web browser that supports HTML5 video</p>
</video>

Any idea why? Thanks.