Manipulation: Support $el.html(selfRemovingScript) (#5378)
[jquery.git] / src / css / cssCamelCase.js
bloba87897989cd7fd2418e11c72dbec573e50c7372b
1 import { camelCase } from "../core/camelCase.js";
3 // Matches dashed string for camelizing
4 var rmsPrefix = /^-ms-/;
6 // Convert dashed to camelCase, handle vendor prefixes.
7 // Used by the css & effects modules.
8 // Support: IE <=9 - 11+
9 // Microsoft forgot to hump their vendor prefix (trac-9572)
10 export function cssCamelCase( string ) {
11         return camelCase( string.replace( rmsPrefix, "ms-" ) );