public function getElementsByTag($name) { $this->isLoaded(); return $this->find($name); }
public function testMultipleSingleQuotes() { $dom = new Dom(); $dom->load("<a title='Ain't this the best' href=\"http://www.example.com\">Hello</a>"); $this->assertEquals("Ain't this the best", $dom->getElementsByTag('a')[0]->title); }