Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Dom\HTMLDocument: prototype.js like DOM-Traversal

未关闭
#23,575 8 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
活跃
技术栈
php
领域
backend

调研方向

首先阅读 PHP 8.4 中引入的 HTMLDocument DOM 功能,并将所要求的遍历和可枚举行为与链接的 Prototype APIs 进行比较。然后检查 chillerlan/php-prototype-dom 中现有的 userland 实现,并通过 issue 讨论确定这是否属于 HTMLDocument,以及怎样的功能范围才算完成。

由索引模型根据 Issue 内容生成。

描述

Extension: dom Feature Status: Requires RFC
Description

Hi,

I just started diving into the new DOM features that came with PHP 8.4, and wondered if it's possible (and/or in the focus of HTMLDocument) to add some of Prototype's DOM traversal and enumerable features. Prototype may have vanished from the web, but its intuitive traversal methods are to this day unmatched and made working on a HTML tree a breeze.

I've implemented this in PHP before, but it was a pain fighting against the quirks of DOMDocument, XML and the countless DOMNode subclasses, it felt very messy to begin with.

Now before I attempt to implement this again in userland with HTMLDocument: is there any chance to even consider such features, or is this out of focus?

主要语言
C
星标
40.4k
派生
8.2k
平均合并
2 天 17 小时
30 天内合并 PR
115

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

php/php-src 的其他 Issue

查看 php/php-src 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。