rosell-dk / webp-express

Wordpress plugin for serving autogenerated WebP images instead of jpeg/png to browsers that supports WebP
GNU General Public License v3.0
221 stars 63 forks source link

Existing picture tag markup may still get broken #560

Closed rosell-dk closed 2 years ago

rosell-dk commented 2 years ago

Existing picture markup is supposed to be skipped. This was implemented long ago: https://github.com/rosell-dk/webp-express/issues/428

However, this doesn't work when the picture markup contains newlines

See: https://wordpress.org/support/topic/existing-picture-tag-markup-gets-broken/#post-15610717

rosell-dk commented 2 years ago

Fixed here: https://github.com/rosell-dk/dom-util-for-webp/issues/34