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
{{ message }}
Repository navigation
Stdlib: DOMDocument::getElementById() after loadHTML() — HTML id attribute not indexed (ext/dom/document.c) #15251
After DOMDocument::loadHTML(), elements with an HTML id attribute are not found by getElementById(). Zend returns the matching element; VM returns null.
setIdAttribute() + XML DTD path works (#14493), but ordinary HTML id="..." from loadHTML() must also resolve without manual ID registration.
Activity
PurHur commentedon Jul 3, 2026
claim: PHP Compiler STD Lib — batch (issue #15251)
ext/dom: index HTML id attributes for getElementById() after loadHTML…
PurHur commentedon Jul 3, 2026
Merged in #15306. loadHTML id indexing + compliance guard green.