The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

448383 (4) [Avatar] Offline
#1
|> Query.findAll [ tag "img", attribute "src" (urlPrefix ++ url) ]


does not compile

The `attribute` function expects `Html.Attribute Never` rather than `String`.

After importing Html.Attribute

import Html.Attributes exposing (src)


the following works:

|> Query.findAll [ tag "img", attribute <| src (urlPrefix ++ url) ]
448383 (4) [Avatar] Offline
#2
Also in listing 6.10.
473370 (1) [Avatar] Offline
#3
Just ran into the same problem, someone at the San Francisco Elm Meetup just helped me fix it by downgrading elm-html-test in test/elm-package.json:

"eeue56/elm-html-test": "4.0.0 <= v < 5.0.0"


Not quite sure how to write this in elm-html-test 5.
rtfeldman (60) [Avatar] Offline
#4
Thanks for pointing this out! I'll update this with Chapter 7.
rlopez (1) [Avatar] Offline
#5
Hi, this is still not updated with the chapter 7
rtfeldman (60) [Avatar] Offline
#6
Ah, that's my mistake. I fixed it in my local copy of Chapter 6 but didn't include it in the revised bundle that got sent out. Really sorry about that!

I'm currently updating chapters 1-7 for the Elm 0.19, so the fix will definitely be included in that update.