Lines Matching refs:attr
121 $element->attr[$attr_name] = $def;
322 foreach ($this->info_global_attr as $attr => $x) {
323 $keys = array($attr, "*@$attr", "*.$attr");
334 unset($this->info_global_attr[$attr]);
339 foreach ($info->attr as $attr => $x) {
340 $keys = array("$tag@$attr", $attr, "*@$attr", "$tag.$attr", "*.$attr");
351 if ($this->info[$tag]->attr[$attr]->required) {
353 "Required attribute '$attr' in element '$tag' " .
358 unset($this->info[$tag]->attr[$attr]);
407 foreach ($info->attr as $attr => $x) {
408 if (isset($forbidden_attributes["$tag@$attr"]) ||
409 isset($forbidden_attributes["*@$attr"]) ||
410 isset($forbidden_attributes[$attr])
412 unset($this->info[$tag]->attr[$attr]);
414 …} elseif (isset($forbidden_attributes["$tag.$attr"])) { // this segment might get removed eventual…
417 "Error with $tag.$attr: tag.attr syntax not supported for " .
473 $attr = false;
475 list($element, $attr) = explode('[', $chunk);
480 if (!$attr) {
483 $attr = substr($attr, 0, strlen($attr) - 1); // remove trailing ]
484 $attr = explode('|', $attr);
485 foreach ($attr as $key) {