fix: only read static value for rel attribute validation

pull/8003/head
dominikg 4 years ago
parent b05b684b95
commit eb2a563a9b

@ -620,7 +620,7 @@ export default class Element extends Node {
if (href_static_value === null || href_static_value.match(/^(https?:)?\/\//i)) {
const rel = attribute_map.get('rel');
const rel_values = rel ? rel.get_static_value().split(' ') : [];
const rel_values = rel?.is_static ? rel.get_static_value().split(' ') : [];
const expected_values = ['noreferrer'];
expected_values.forEach(expected_value => {

Loading…
Cancel
Save