HomePhabricator

Optimize ID attribute search, if the DOM implementation has indexed it
d811b6b05f92Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

Description

Optimize ID attribute search, if the DOM implementation has indexed it

There are a few gotchas in DOMDocument#getElementById() (see T215000
for discussion) so be extra careful and double-check the result.

Change-Id: Ie7dc1c969543136a8e4b48a2afa7c9e198938493

Details

Provenance
cscottAuthored on Mar 5 2019, 9:14 PM
Parents
rMLZEe756a31b2582: Speed up Zest by 100x by not using DOMDocument#getElementsByTagName()
Branches
Unknown
Tags
Unknown
ChangeId
Ie7dc1c969543136a8e4b48a2afa7c9e198938493