[php-src] PR #14349: Fix bug #79701: getElementById does not correctly work with duplicate definitions
| From: | nielsdos | Date: | Tue, 28 May 2024 20:26:12 +0000 |
| Subject: | [php-src] PR #14349: Fix bug #79701: getElementById does not correctly work with duplicate definitions | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-26351@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/14349
Author: nielsdos
This is a long standing bug: IDs aren't properly tracked causing either outdated or plain
incorrect results from getElementById.
This PR implements a pragmatic solution in which we still try to use the ID lookup table to a
degree, but only as a performance boost not as a "single source of truth". Full details
are explained in the getElementById code.
This is marked as WIP for now as I need to do further validations. But this will be the main idea.