Dom\HTMLDocument: prototype.js like DOM-Traversal

Aperta
#23,575 8 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
php
Ambito
backend

Direzione di ricerca

Inizia leggendo le funzionalità del DOM di HTMLDocument introdotte in PHP 8.4 e confronta il comportamento di attraversamento ed enumerazione richiesto con le Prototype APIs collegate. Esamina poi l'implementazione esistente in userland in chillerlan/php-prototype-dom e usa la discussione dell'issue per stabilire se questo rientra in HTMLDocument e quale ambito di funzionalità verrebbe considerato completato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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?

Lingua principale
C
Stelle
40.4k
Fork
8.2k
Merge medio
2g 15h
PR unite (30g)
103

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di php/php-src

Tutte le issue di php/php-src

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.