classPrefix is not applied to first feature #1053

anasnakawa opened this Issue Oct 5, 2013 · 1 comment


None yet

2 participants


I am using Modernizr v3.0.0pre, with a custom config-all.json file as follows,

  "classPrefix" : "libname-",
  "options": [
  "feature-detects": [

but when i load the page, i got those classes on html element where classPrefix is applied to all features except the first one..

<html lang="en" class=" cssanimations libname-borderimage libname-cssgradients libname-hsla libname-mediaqueries libname-rgba libname-csstransforms libname-csstransforms3d libname-csstransitions libname-no-touchevents">
@ryanseddon ryanseddon closed this in 6aef0c9 Oct 7, 2013

Sweet thanks @anasnakawa that will work correctly now

@patrickkettner patrickkettner pushed a commit to patrickkettner/Modernizr that referenced this issue Feb 22, 2015
@ryanseddon ryanseddon Make sure all classnames get classPrefix if passed in config file. Fi…
…xes #1053
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment