* Replaces top-level selectors such as `html` and `body` with their polyfill * counterparts: `amp-html` and `amp-body`. * @param {string} selector * @return {string}
(selector)
| 247 | * @return {string} |
| 248 | */ |
| 249 | function transformRootSelectors(selector) { |
| 250 | return selector.replace(/(html|body)/g, rootSelectorPrefixer); |
| 251 | } |
| 252 | |
| 253 | /** |
| 254 | * See `transformRootSelectors`. |