-
-
Notifications
You must be signed in to change notification settings - Fork 200
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
swap_attributes not working #846
Comments
@andreadellacorte, according to the README, the correct syntax should be (note the double swap_attributes: { "img": [["data-src", "src"]] } |
thanks @riccardoporreca apologies that was me testing with 1 I have just now put back the
still fails with
on
|
I see, the example in the README is not up-to-date.
which indicates the issue is with the wrong usage of The correct syntax makes sure the hash key is as string, not a symbol, which is what we want since the HTML tag name, used to lookup the swapped attributes, is also a string, like The README should be updated accordingly. |
Hi, I am running html proofer as follows
(note:
swap_attributes: { "img": [["data-src", "src"]] }
doesn't work either))on this file
and getting
Is my syntax wrong? I copied the command and test from the repo itself.
The text was updated successfully, but these errors were encountered: