summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js/transcoder.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web_editor/static/src/js/transcoder.js')
-rw-r--r--addons/web_editor/static/src/js/transcoder.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/addons/web_editor/static/src/js/transcoder.js b/addons/web_editor/static/src/js/transcoder.js
index 8dbc0ff0104..716c6f6250d 100644
--- a/addons/web_editor/static/src/js/transcoder.js
+++ b/addons/web_editor/static/src/js/transcoder.js
@@ -38,7 +38,9 @@ var getMatchedCSSRules = function (a) {
selectorText.indexOf(":after") === -1 &&
selectorText.indexOf(":active") === -1 &&
selectorText.indexOf(":link") === -1 &&
- selectorText.indexOf("::") === -1) {
+ selectorText.indexOf("::") === -1 &&
+ selectorText.indexOf("\"") === -1 &&
+ selectorText.indexOf("'") === -1) {
var st = selectorText.split(/\s*,\s*/);
for (var k=0; k<st.length; k++) {
rulesCache.push({ 'selector': st[k], 'style': rules[r].style });
@@ -182,4 +184,4 @@ return {
'style_to_class': style_to_class,
};
-}); \ No newline at end of file
+});