Lines Matching defs:name
854 * [1] - tag name
856 * Matches the tag name consisting of zero or more words, colons,
859 * [2] - id name
861 * Optionally matches a id name, consisting of an "#" followed by
862 * the id name (one or more words and hyphens).
867 * followed by the class name (one or more words and hyphens)
912 * [1] - attribute name
917 * Note: Attributes can be negated with a "!" prefix to their name
969 function __get($name)
971 if (isset($this->attr[$name])) {
972 return $this->convert_text($this->attr[$name]);
974 switch ($name) {
979 default: return array_key_exists($name, $this->attr);
983 function __set($name, $value)
988 switch ($name) {
997 if (!isset($this->attr[$name])) {
1002 $this->attr[$name] = $value;
1005 function __isset($name)
1007 switch ($name) {
1013 return (array_key_exists($name, $this->attr)) ? true : isset($this->attr[$name]);
1016 function __unset($name)
1018 if (isset($this->attr[$name])) { unset($this->attr[$name]); }
1264 function getAttribute($name)
1266 return $this->__get($name);
1269 function setAttribute($name, $value)
1271 $this->__set($name, $value);
1274 function hasAttribute($name)
1276 return $this->__isset($name);
1279 function removeAttribute($name)
1281 $this->__set($name, null);
1332 function getElementByTagName($name)
1334 return $this->find($name, 0);
1337 function getElementsByTagName($name, $idx = null)
1339 return $this->find($name, $idx);
1915 $tag = $this->copy_until($this->token_slash); // Get tag name
1989 // Everything until the first equal sign should be the attribute name
1990 $name = $this->copy_until($this->token_equal);
1992 if ($name === '' && $this->char !== null && $space[0] === '') {
2008 $node->_[HDOM_INFO_TEXT] = '<' . $tag . $space[0] . $name;
2032 if ($name !== '/' && $name !== '') { // this is a attribute name
2033 // [1] Whitespace after attribute name
2036 $name = $this->restore_noise($name); // might be a noisy name
2038 if ($this->lowercase) { $name = strtolower($name); }
2042 $this->parse_attr($node, $name, $space); // get attribute value
2046 $node->attr[$name] = true;
2089 protected function parse_attr($node, $name, &$space)
2091 $is_duplicate = isset($node->attr[$name]);
2127 if ($name === 'class') {
2133 $node->attr[$name] = $value;
2295 function __get($name)
2297 switch ($name) {
2326 function createElement($name, $value = null)
2328 return @str_get_html("<$name>$value</$name>")->firstChild();
2346 function getElementByTagName($name)
2348 return $this->find($name, 0);
2351 function getElementsByTagName($name, $idx = -1)
2353 return $this->find($name, $idx);