FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Implement GH-18550: Implement getElementsByClassName() by ndossche · Pull Request #19108 · php/php-src · GitHub

/ php-src Public

Implement GH-18550: Implement getElementsByClassName() - #19108

Merged
ndossche merged 6 commits into
php:masterfrom
ndossche:fix-18550
Jul 14, 2025
Merged

Implement GH-18550: Implement getElementsByClassName()#19108
ndossche merged 6 commits into
php:masterfrom
ndossche:fix-18550

Conversation

Copy link
Copy Markdown
Member

ndossche linked an issue Jul 12, 2025 that may be closed by this pull request
ndossche marked this pull request as ready for review July 12, 2025 18:33
ndossche requested a review from kocsismate as a code owner July 12, 2025 18:33

Girgias left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This looks fine, but I have a few questions as I'm slightly confused by the DOM spec.

Comment thread ext/dom/element.c
Comment thread ext/dom/token_list.c
Comment thread ext/dom/obj_map.c
dom_node_idx_pair start_point = dom_obj_map_get_start_point(map, nodep, index);
if (start_point.node) {
if (start_point.index > 0) {
/* Only start iteration at next point if we actually have an index to seek to. */

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

FWIW, I did a correction here because we don't want to immediately skip the current index if the current index is already the one we need.

ndossche merged commit 9121b01 into php:master Jul 14, 2025
9 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dom\HTMLElement::getElementsByClassName() not implemented

2 participants


Back | FazBrowse Home | New Git URL