@@ 325-332 (lines=8) @@ | ||
322 | foreach ($this->info_global_attr as $attr => $x) { |
|
323 | $keys = array($attr, "*@$attr", "*.$attr"); |
|
324 | $delete = true; |
|
325 | foreach ($keys as $key) { |
|
326 | if ($delete && isset($allowed_attributes[$key])) { |
|
327 | $delete = false; |
|
328 | } |
|
329 | if (isset($allowed_attributes_mutable[$key])) { |
|
330 | unset($allowed_attributes_mutable[$key]); |
|
331 | } |
|
332 | } |
|
333 | if ($delete) { |
|
334 | unset($this->info_global_attr[$attr]); |
|
335 | } |
|
@@ 342-349 (lines=8) @@ | ||
339 | foreach ($info->attr as $attr => $x) { |
|
340 | $keys = array("$tag@$attr", $attr, "*@$attr", "$tag.$attr", "*.$attr"); |
|
341 | $delete = true; |
|
342 | foreach ($keys as $key) { |
|
343 | if ($delete && isset($allowed_attributes[$key])) { |
|
344 | $delete = false; |
|
345 | } |
|
346 | if (isset($allowed_attributes_mutable[$key])) { |
|
347 | unset($allowed_attributes_mutable[$key]); |
|
348 | } |
|
349 | } |
|
350 | if ($delete) { |
|
351 | if ($this->info[$tag]->attr[$attr]->required) { |
|
352 | trigger_error( |