ivopetkov / html5-dom-document-php

A better HTML5 parser for PHP.
MIT License
599 stars 40 forks source link

Show autocomplete of HTML5DOMElement #53

Closed manychois closed 2 years ago

manychois commented 2 years ago
$dom = new HTML5DOMDocument();
$b = $dom->createElement('b'); // IDE now knows $b is HTML5DOMElement
$b->classList->add('test');  // classList is recognised