nette / tester

Tester: enjoyable unit testing in PHP with code coverage reporter. 🍏🍏🍎🍏
https://tester.nette.org
Other
453 stars 71 forks source link

DomQuery does not support SVG #354

Closed JanTvrdik closed 4 years ago

JanTvrdik commented 7 years ago

Another DOMDocument-caused bug. DomQuery does not support SVG. Current workaround I use is Strings::replace($html, '#<svg[^>]*+>.+?</svg>#s', '');

Our SVG code

<svg role="img" aria-label="" title="" class="shape shape-share-fb view-head button-icon">
    <use xlink:href="#shape-share-fb"></use>
</svg>
genesiscz commented 4 years ago

Is this getting a fix?