| @@ 280-287 (lines=8) @@ | ||
| 277 | foreach ($this->info_global_attr as $attr => $x) { |
|
| 278 | $keys = array($attr, "*@$attr", "*.$attr"); |
|
| 279 | $delete = true; |
|
| 280 | foreach ($keys as $key) { |
|
| 281 | if ($delete && isset($allowed_attributes[$key])) { |
|
| 282 | $delete = false; |
|
| 283 | } |
|
| 284 | if (isset($allowed_attributes_mutable[$key])) { |
|
| 285 | unset($allowed_attributes_mutable[$key]); |
|
| 286 | } |
|
| 287 | } |
|
| 288 | if ($delete) unset($this->info_global_attr[$attr]); |
|
| 289 | } |
|
| 290 | ||
| @@ 295-302 (lines=8) @@ | ||
| 292 | foreach ($info->attr as $attr => $x) { |
|
| 293 | $keys = array("$tag@$attr", $attr, "*@$attr", "$tag.$attr", "*.$attr"); |
|
| 294 | $delete = true; |
|
| 295 | foreach ($keys as $key) { |
|
| 296 | if ($delete && isset($allowed_attributes[$key])) { |
|
| 297 | $delete = false; |
|
| 298 | } |
|
| 299 | if (isset($allowed_attributes_mutable[$key])) { |
|
| 300 | unset($allowed_attributes_mutable[$key]); |
|
| 301 | } |
|
| 302 | } |
|
| 303 | if ($delete) { |
|
| 304 | if ($this->info[$tag]->attr[$attr]->required) { |
|
| 305 | trigger_error("Required attribute '$attr' in element '$tag' was not allowed, which means '$tag' will not be allowed either", E_USER_WARNING); |
|