462521 (1) [Avatar] Offline
#1
Elm in Action v5 MEAP:

  • Page 76: SurpriseMe index is incorrect. Should be SurpriseMe (without index)

  • Page 161: Wrong picture for Figure 6.2

  • Page 170: The file name TestPhotoGroove.elm is incorrect. Should be PhotoGrooveTests.elm

  • Page 174: SetUrl is incorrect. Should be SelectByUrl

  • Page 174: Typo: intiial model

  • Page 182: attribute "src" is no longer valid (doesn't compile). Should be Attr.attribute <| Attr.src

  • Page 187: urlToClick is incorrect. Should be urlToSelect


  • Hope this helps. Great book!
    394895 (2) [Avatar] Offline
    #2
    ... to attribute src - (Attr is a bit misleading, also Attr.attribute does not exist)
    it actually should be

    import Html.Attributes as Attr
    ...
    thumbnailRendered url query =
                        query
                            |> Query.findAll [ tag "img", attribute <| Attr.src (urlPrefix ++ url) ]
                            |> Query.count (Expect.atLeast 1)