title: Setting chosen font family works in firefox but not in chrome
body: <p>I have this code to retrieve the font family of a certain text div, in order to set that to the drop-down (SELECT) font-picker of my editor:</p>
  
  <pre><code>    //getter for fontFamily
      function getFontFamily(inner) {
          var fontFamilyVal = $(inner).css("font-family");
          console.log('current font family is ' + fontFamilyVal)
          $("select#fontFamily option").each(function() {
              this.selected = (this.value == fontFamilyVal); 
          });
      };
  </code></pre>
  
  <p>However it doesn't always work in Chrome. It only works with font names without spaces, when I have a font family whos name has spaces it fails (but works fine in firefox).</p>