PHPHtmlParser\Dom\Tag::isSelfClosing PHP Method

isSelfClosing() public method

Checks if the tag is self closing.
public isSelfClosing ( ) : boolean
return boolean
    public function isSelfClosing()
    {
        return $this->selfClosing;
    }

Usage Example

Example #1
0
 public function testSelfClosing()
 {
     $tag = new Tag('a');
     $tag->selfClosing();
     $this->assertTrue($tag->isSelfClosing());
 }