You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DOMElement::setIdAttribute() is undefined on this compiler. Zend registers the method so callers can mark an attribute as an XML ID and use DOMDocument::getElementById()without a DTD ID declaration.
Today:
fail: DOMElement::setIdAttribute() undefined
After setIdAttribute('id', true), Zend resolves getElementById('target'); VM always returns null for undeclared-ID documents.
php-src reference
ext/dom/node.c — dom_element_set_id_attribute(), ID table registration
Activity
PurHur commentedon Jul 1, 2026
claim: PHP Compiler STD Lib — batch (issue #14493, continuing after #14576 merge)
DOMElement::setIdAttribute() — enable getElementById without DTD (#14493
PurHur commentedon Jul 1, 2026
Merged via #14588.
Verification: repro OK; compliance
dom_element_set_id_attribute.phpt; PHPUnit--filter dom_element_set_id_attribute(VM+JIT);bin/compile.php -lon repro.