Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

relative srcset attribute paths for img tags #49

Open
fedeolto opened this issue Dec 27, 2021 · 2 comments
Open

relative srcset attribute paths for img tags #49

fedeolto opened this issue Dec 27, 2021 · 2 comments

Comments

@fedeolto
Copy link

fedeolto commented Dec 27, 2021

Hi,
I have this tag in my ejs template

<img 
 srcset="img/desktop/logo-horiz-colors.png 1024w,
 img/mobile/logo-horiz-colors.png 640w"
 src="img/desktop/logo-horiz-colors.png"
... >

being transformed in:

 <img srcset="img/desktop/logo-horiz-colors.png 1024w,
 img/mobile/logo-horiz-colors.png 640w" 
 src="../img/desktop/logo-horiz-colors.png" 
 ...>

As you can see the src attribute is relative, but the srcset isn't

I submitted PR #50 to fix it

@fedeolto
Copy link
Author

up

1 similar comment
@Emkacf
Copy link

Emkacf commented May 31, 2022

up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants