We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59b364a commit 2862d97Copy full SHA for 2862d97
src/compiler/transclude.js
@@ -1,6 +1,7 @@
1
var _ = require('../util')
2
var config = require('../config')
3
var templateParser = require('../parsers/template')
4
+var specialCharRE = /[#@\*\$\.]/
5
6
/**
7
* Process an element or a DocumentFragment based on a
@@ -134,7 +135,7 @@ function mergeAttrs (from, to) {
134
135
while (i--) {
136
name = attrs[i].name
137
value = attrs[i].value
- if (!to.hasAttribute(name)) {
138
+ if (!to.hasAttribute(name) && !specialCharRE.test(name)) {
139
to.setAttribute(name, value)
140
} else if (name === 'class') {
141
value = to.getAttribute(name) + ' ' + value
0 commit comments