function makeup()
	{
		// text, comment, unknown
		if (isset($this->_[HDOM_INFO_TEXT])) return $this->dom->restore_noise($this->_[HDOM_INFO_TEXT]);

		$ret = '<'.$this->tag;
		$i = -1;

		foreach ($this->attr as $key=>$val)
		{
			++$i;

			// skip removed attribute
			if ($val===null || $val===false)
				continue;

			$ret .= $this->_[HDOM_INFO_SPACE][$i][0];
			//no value attr: nowrap, checked selected...
			if ($val===true)
				$ret .= $key;
			else {
				switch ($this->_[HDOM_INFO_QUOTE][$i])
				{
					case HDOM_QUOTE_DOUBLE: $quote = '"'; break;
					case HDOM_QUOTE_SINGLE: $quote = '\''; break;
					default: $quote = '';
				}
				$ret .= $key.$this->_[HDOM_INFO_SPACE][$i][1].'='.$this->_[HDOM_INFO_SPACE][$i][2].$quote.$val.$quote;
			}
		}
		$ret = $this->dom->restore_noise($ret);
		return $ret . $this->_[HDOM_INFO_ENDSPACE] . '>';
	}
function makeup()
	{
		// text, comment, unknown
		if (isset($this->_[HDOM_INFO_TEXT])) return $this->dom->restore_noise($this->_[HDOM_INFO_TEXT]);

		$ret = '<'.$this->tag;
		$i = -1;

		foreach ($this->attr as $key=>$val)
		{
			++$i;

			// skip removed attribute
			if ($val===null || $val===false)
				continue;

			$ret .= $this->_[HDOM_INFO_SPACE][$i][0];
			//no value attr: nowrap, checked selected...
			if ($val===true)
				$ret .= $key;
			else {
				switch ($this->_[HDOM_INFO_QUOTE][$i])
				{
					case HDOM_QUOTE_DOUBLE: $quote = '"'; break;
					case HDOM_QUOTE_SINGLE: $quote = '\''; break;
					default: $quote = '';
				}
				$ret .= $key.$this->_[HDOM_INFO_SPACE][$i][1].'='.$this->_[HDOM_INFO_SPACE][$i][2].$quote.$val.$quote;
			}
		}
		$ret = $this->dom->restore_noise($ret);
		return $ret . $this->_[HDOM_INFO_ENDSPACE] . '>';
	}
function makeup ( ) { // text, comment, unknown
 if ( isset ( $ this -> _ [ HDOM_INFO_TEXT ] ) ) return $ this -> dom -> restore_noise ( $ this -> _ [ HDOM_INFO_TEXT ] ) ; $ ret = '<' . $ this -> tag ; $ i = - 1 ; foreach ( $ this -> attr as $ key => $ val ) { ++ $ i ; // skip removed attribute
 if ( $ val === null || $ val === false ) continue ; $ ret .= $ this -> _ [ HDOM_INFO_SPACE ] [ $ i ] [ 0 ] ; //no value attr: nowrap, checked selected...
 if ( $ val === true ) $ ret .= $ key ; else { switch ( $ this -> _ [ HDOM_INFO_QUOTE ] [ $ i ] ) { case HDOM_QUOTE_DOUBLE : $ quote = '"' ; break ; case HDOM_QUOTE_SINGLE : $ quote = '\'' ; break ; default : $ quote = '' ; } $ ret .= $ key . $ this -> _ [ HDOM_INFO_SPACE ] [ $ i ] [ 1 ] . '=' . $ this -> _ [ HDOM_INFO_SPACE ] [ $ i ] [ 2 ] . $ quote . $ val . $ quote ; } } $ ret = $ this -> dom -> restore_noise ( $ ret ) ; return $ ret . $ this -> _ [ HDOM_INFO_ENDSPACE ] . '>' ; }
build node's text with tag
build node s text with tag