|
@@ 142-147 (lines=6) @@
|
| 139 |
|
ksort($this->lines, SORT_NUMERIC); |
| 140 |
|
|
| 141 |
|
// Now, check if we need to operate on a lower structure |
| 142 |
|
if (!empty($attr)) { |
| 143 |
|
$struct = $struct->getChild(HTMLPurifier_ErrorStruct::ATTR, $attr); |
| 144 |
|
if (!$struct->value) { |
| 145 |
|
$struct->value = array($attr, 'PUT VALUE HERE'); |
| 146 |
|
} |
| 147 |
|
} |
| 148 |
|
if (!empty($cssprop)) { |
| 149 |
|
$struct = $struct->getChild(HTMLPurifier_ErrorStruct::CSSPROP, $cssprop); |
| 150 |
|
if (!$struct->value) { |
|
@@ 148-154 (lines=7) @@
|
| 145 |
|
$struct->value = array($attr, 'PUT VALUE HERE'); |
| 146 |
|
} |
| 147 |
|
} |
| 148 |
|
if (!empty($cssprop)) { |
| 149 |
|
$struct = $struct->getChild(HTMLPurifier_ErrorStruct::CSSPROP, $cssprop); |
| 150 |
|
if (!$struct->value) { |
| 151 |
|
// if we tokenize CSS this might be a little more difficult to do |
| 152 |
|
$struct->value = array($cssprop, 'PUT VALUE HERE'); |
| 153 |
|
} |
| 154 |
|
} |
| 155 |
|
|
| 156 |
|
// Ok, structs are all setup, now time to register the error |
| 157 |
|
$struct->addError($severity, $msg); |