ContainsRelRef should not be triggered by anchor links

Aperta
#47 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
52/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
html, python
Ambito
backend

Direzione di ricerca

Find the validator logic that emits the ContainsRelRef warning and inspect the existing tests covering relative references. Update the behavior so URLs beginning with # are treated as same-document anchors rather than relative resources. Run the relevant validator test suite and confirm that ordinary relative URLs still produce the warning.

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

Descrizione

The docs state that relative URLs cannot be fetched by some feed readers that might look for filesystem paths rather than web resources.

Anchor URLs should be acceptable since they should just refer to locations in the current document. Example:

Jump to the <a href="#tldr">TLDR</a> at the bottom.

(I wanted to start a discussion about whether this is a good idea, but all the URLs to the mailing lists in the docs are dead).

Lingua principale
Python
Stelle
135
Fork
67
Merge medio
2g 51m
PR unite (30g)
4

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna 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 w3c/feedvalidator

Tutte le issue di w3c/feedvalidator

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.