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

Over-escaped quotes in attributes #37

Closed
henrik opened this issue Sep 25, 2015 · 12 comments
Closed

Over-escaped quotes in attributes #37

henrik opened this issue Sep 25, 2015 · 12 comments
Labels

Comments

@henrik
Copy link
Contributor

henrik commented Sep 25, 2015

Seems like with 0.7.1, this:

link rel="stylesheet" href="#{static_path(@conn, "/css/app.css")}"

Started producing this output:

<link rel="stylesheet" href=&quot;/css/app.css?vsn=625AD8D&quot;>

Which breaks styling because the quotes are over-escaped.

Same result if I try

link rel="stylesheet" href=static_path(@conn,"/css/app.css")

(without a space after the comma, due to #32)

@doomspork
Copy link
Member

Thanks for the report @henrik, I'll look into it this afternoon.

@Rakoth
Copy link
Member

Rakoth commented Sep 27, 2015

Hi, @henrik could you please provide a failing test case? I cannot reproduce it.

@henrik
Copy link
Contributor Author

henrik commented Sep 27, 2015

Maybe there's something else about my project setup that plays into this.

You should be able to see the issue with something like

git clone git@github.com:henrik/qed.git
mix deps.update  # So you get 0.7.1 instead of 0.7.0
mix deps.get
mix phoenix.server
open http://localhost:4000  # And view source

@ivanyv
Copy link

ivanyv commented Oct 3, 2015

I'm having the same issue, just created a barebones phoenix app and added the phoenixslim dependency. Just began with elixir/phoenix today so not enough knowledge to create a test case :(

@unitymind
Copy link

Confirm this issue. Exactly as described.

@doomspork
Copy link
Member

Thanks for the reports guys. I believe @Rakoth took a look at this any was unable to repo. @unitymind or @ivanyv can you provide a test case that we can use?

I'll take a look at this today or tomorrow.

@henrik
Copy link
Contributor Author

henrik commented Oct 4, 2015

I linked my tiny Phoenix app above: maybe you can repro in there.

Sent from my iPhone

On 04 Oct 2015, at 20:00, Sean notifications@github.com wrote:

Thanks for the reports guys. I believe @Rakoth took a look at this any was unable to repo. @unitymind or @ivanyv can you provide a test case that we can use?

I'll take a look at this today or tomorrow.


Reply to this email directly or view it on GitHub.

@doomspork
Copy link
Member

Thanks @henrik, I can take a peek but as you said yourself "Maybe there's something else about my project setup that plays into this.". A single failing test case lets us focus on the actual bug instead of wrestling potentially unrelated bugs or configuration issues.

I'll take a stab at putting together some test cases for this.

@henrik
Copy link
Contributor Author

henrik commented Oct 4, 2015

Sure. If all else fails, though, going from an error-in-app to figuring out a failing test case could be an option. It's a tiny, tiny Phoenix app.

Sent from my iPhone

On 04 Oct 2015, at 20:39, Sean notifications@github.com wrote:

Thanks @henrik, I can take a peek but as you said yourself "Maybe there's something else about my project setup that plays into this.". A single failing test case lets us focus on the actual bug instead of wrestling potentially unrelated bugs or configuration issues.

I'll take a stab at putting together some test cases for this.


Reply to this email directly or view it on GitHub.

@unitymind
Copy link

Here is initial Phoenix app: https://github.com/unitymind/boozeup
Where is take a look into web/templates/layout/app.html.slim

@doomspork
Copy link
Member

0.7.2 has been released and should include a fix for this thanks to @Rakoth!

@henrik
Copy link
Contributor Author

henrik commented Oct 5, 2015

@doomspork @Rakoth Thanks so much! 🎈

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

No branches or pull requests

5 participants