• lofesa

    (@lofesa)


    Hi @florianbrinkmann

    I′m facing a problem with inlined svgs. The plugin is set to parse all the html and uses the DOMXPath to walk trougth nodes.

    This makes all inlined svg lost their xmnls and in some cases add an extra / to the svg making </sgv> orphan.

    For example:

    <svg xmlns="https://www.w3.org/2000/svg viewBox="0 0 1400 600" data-related-device="desktopPortrait" class="n2-ow n2-ss-preserve-size n2-ss-preserve-size--slider n2-ss-slide-limiter"></svg>

    get converted in

    <svg viewBox="0 0 1400 600" data-related-device="desktopPortrait" class="n2-ow n2-ss-preserve-size n2-ss-preserve-size--slider n2-ss-slide-limiter"/></svg>

    How can this be avoided?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Inlined svg get modified’ is closed to new replies.