Lines Matching defs:name

850 		 * [1] - tag name
852 * Matches the tag name consisting of zero or more words, colons,
855 * [2] - id name
857 * Optionally matches a id name, consisting of an "#" followed by
858 * the id name (one or more words and hyphens).
863 * followed by the class name (one or more words and hyphens)
908 * [1] - attribute name
913 * Note: Attributes can be negated with a "!" prefix to their name
965 function __get($name)
967 if (isset($this->attr[$name])) {
968 return $this->convert_text($this->attr[$name]);
970 switch ($name) {
975 default: return array_key_exists($name, $this->attr);
979 function __set($name, $value)
984 switch ($name) {
993 if (!isset($this->attr[$name])) {
998 $this->attr[$name] = $value;
1001 function __isset($name)
1003 switch ($name) {
1009 return (array_key_exists($name, $this->attr)) ? true : isset($this->attr[$name]);
1012 function __unset($name)
1014 if (isset($this->attr[$name])) { unset($this->attr[$name]); }
1260 function getAttribute($name)
1262 return $this->__get($name);
1265 function setAttribute($name, $value)
1267 $this->__set($name, $value);
1270 function hasAttribute($name)
1272 return $this->__isset($name);
1275 function removeAttribute($name)
1277 $this->__set($name, null);
1328 function getElementByTagName($name)
1330 return $this->find($name, 0);
1333 function getElementsByTagName($name, $idx = null)
1335 return $this->find($name, $idx);
1909 $tag = $this->copy_until($this->token_slash); // Get tag name
1983 // Everything until the first equal sign should be the attribute name
1984 $name = $this->copy_until($this->token_equal);
1986 if ($name === '' && $this->char !== null && $space[0] === '') {
2002 $node->_[HDOM_INFO_TEXT] = '<' . $tag . $space[0] . $name;
2026 if ($name !== '/' && $name !== '') { // this is a attribute name
2027 // [1] Whitespace after attribute name
2030 $name = $this->restore_noise($name); // might be a noisy name
2032 if ($this->lowercase) { $name = strtolower($name); }
2036 $this->parse_attr($node, $name, $space); // get attribute value
2040 $node->attr[$name] = true;
2083 protected function parse_attr($node, $name, &$space)
2085 $is_duplicate = isset($node->attr[$name]);
2121 if ($name === 'class') {
2127 $node->attr[$name] = $value;
2289 function __get($name)
2291 switch ($name) {
2320 function createElement($name, $value = null)
2322 return @str_get_html("<$name>$value</$name>")->firstChild();
2340 function getElementByTagName($name)
2342 return $this->find($name, 0);
2345 function getElementsByTagName($name, $idx = -1)
2347 return $this->find($name, $idx);