|
|
@ -620,9 +620,9 @@ export default class Element extends Node {
|
|
|
|
|
|
|
|
|
|
|
|
if (href_static_value === null || href_static_value.match(/^(https?:)?\/\//i)) {
|
|
|
|
if (href_static_value === null || href_static_value.match(/^(https?:)?\/\//i)) {
|
|
|
|
const rel = attribute_map.get('rel');
|
|
|
|
const rel = attribute_map.get('rel');
|
|
|
|
|
|
|
|
if (rel == null || rel.is_static) {
|
|
|
|
const rel_values = rel ? rel.get_static_value().split(' ') : [];
|
|
|
|
const rel_values = rel ? rel.get_static_value().split(' ') : [];
|
|
|
|
const expected_values = ['noreferrer'];
|
|
|
|
const expected_values = ['noreferrer'];
|
|
|
|
|
|
|
|
|
|
|
|
expected_values.forEach(expected_value => {
|
|
|
|
expected_values.forEach(expected_value => {
|
|
|
|
if (!rel || rel && rel_values.indexOf(expected_value) < 0) {
|
|
|
|
if (!rel || rel && rel_values.indexOf(expected_value) < 0) {
|
|
|
|
component.warn(this, {
|
|
|
|
component.warn(this, {
|
|
|
@ -633,6 +633,7 @@ export default class Element extends Node {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (href_attribute) {
|
|
|
|
if (href_attribute) {
|
|
|
|
const href_value = href_attribute.get_static_value();
|
|
|
|
const href_value = href_attribute.get_static_value();
|
|
|
|