U+0000 is now a parse error in bogus comment and bogus DOCTYPE states

Aperta
#100 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
html, java
Ambito
tooling

Direzione di ricerca

Inizia leggendo la pull request 2939 di WHATWG HTML e riproduci l’esempio nell’HTML5 parser checker con \u003c!%00\u003e. Traccia dove viene gestito U+0000 in preprocessing, tokenization e tree building. Il lavoro è completo quando il parser segue la gestione specificata per gli stati bogus comment e bogus DOCTYPE, incluso il comportamento parse-error previsto.

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

Descrizione

Consider implementing https://github.com/whatwg/html/pull/2939

Experimenting with https://checker.html5.org/parsetree/?parser=html5&content=<!%00>&submit=Print+Tree it seems currently the U+0000 check is in the preprocessing step, and not in the tokenizer. In the spec it was removed from the preprocessing since it needs different handling in the tokenizer/tree builder for different contexts, IIRC. But with the latest spec change it ought to be equivalent in terms of how many errors are produced for a given input, the difference could be relative order of errors.

Anyway I thought I'd file this as a heads-up at least.

Lingua principale
Java
Stelle
65
Fork
29
Merge medio
11g 21h
PR unite (30g)
3

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 validator/htmlparser

Tutte le issue di validator/htmlparser

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.