|
|
|
@ -653,10 +653,7 @@ export default class Element extends Node {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else if (name === 'complete') {
|
|
|
|
} else if (name === 'complete') {
|
|
|
|
if (this.name !== 'img') {
|
|
|
|
if (this.name !== 'img') {
|
|
|
|
component.error(binding, {
|
|
|
|
component.error(binding, compiler_errors.invalid_binding_element_with(binding.name, '<img>'));
|
|
|
|
code: `invalid-binding`,
|
|
|
|
|
|
|
|
message: `'${binding.name}' binding can only be used with <img>`
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else if (name !== 'this') {
|
|
|
|
} else if (name !== 'this') {
|
|
|
|
return component.error(binding, compiler_errors.invalid_binding(binding.name));
|
|
|
|
return component.error(binding, compiler_errors.invalid_binding(binding.name));
|
|
|
|
|