treehouse : what would you like to learn today?
Web Design Web Development iOS Development

[Solved] Is some javascript adding extra quotations around my class and ID?

  • http://goodwynbuilding.com/communites-test/

    Below the map there is a td to the left of the first address. In it should be a div like this...

    <div id=​"BishopPlaceLogo" class=​"logoSprite" >​​​</div>​

    But when I view it it Google developer tools it looks like this with extra quotes...

    <div id=​"​"BishopPlaceLogo"" class=​"​"logoSprite"" >​​​</div>​
    ""


    Is that why the image is not showing up?

    Thanks!
  • I wonder if the quotes that you use in the source are non-standard characters or something, so they're regarded as part of the ID and class name. Try giving that single quotes to see if it solves the problem.
  • Yes when I remove the extra quotes in webmaster tools it works. Do you know what is putting the quotes there?
  • Nope, can't see it right away. Could be a lot of things happening in the back-end, really!
  • I had this same problem a few years ago with Wordpress. I believe it was related to the WYSIWYG editor that was used to write articles.
  • I got it. The quotes were "bad" or something. I copied and pasted some working quotes and now it is working.
  • Copy and pasting quotes has delayed so many projects for me in the past. It is a rather annoying little issue.