[HN Gopher] Slightly better named character reference tokenizati...
       ___________________________________________________________________
        
       Slightly better named character reference tokenization than Chrome,
       Safari, FF
        
       Author : todsacerdoti
       Score  : 32 points
       Date   : 2025-06-27 00:27 UTC (22 hours ago)
        
 (HTM) web link (www.ryanliptak.com)
 (TXT) w3m dump (www.ryanliptak.com)
        
       | deepdarkforest wrote:
       | This might not get a lot of traction because it's very technical,
       | but i wanted to say a massive well done for the effort. 20k words
       | on anything this specific is not a joke. I wish i would put this
       | level of commitment to anything in life, this was inspiring if
       | nothing else.
        
         | squeek502 wrote:
         | Appreciate it (I'm the author). I'd like to think there's a
         | good bit of interesting stuff in here outside of the specific
         | topic of named character reference tokenization.
        
           | chaps wrote:
           | "no[t] a 'data structures' person"
           | 
           | says the person who wrote an extremely technical 20k word
           | blog post on data structures! <3
        
           | arthurcolle wrote:
           | Congratulations on your newfound promotion to data structures
           | person btw
        
       | Ndymium wrote:
       | Thanks to your article I just realised my HTML entity codec
       | library doesn't support decoding those named entities that can
       | omit the semicolon at the end. More work for me, good thing my
       | summer vacation just started! :)
        
       | masfuerte wrote:
       | That was a good read. I reread the relevant section of the HTML5
       | spec and noticed an error in an example:
       | 
       | > For example, &not;in will be parsed as "!in" whereas &notin
       | will be parsed as "[?]".
       | 
       | Only a small minority of the named character references are
       | permitted without a closing semicolon, and notin is not one of
       | them. So &notin is actually parsed as "!in". &notin; is parsed as
       | "[?]".
       | 
       | https://html.spec.whatwg.org/#parse-error-missing-semicolon-...
        
       ___________________________________________________________________
       (page generated 2025-06-27 23:00 UTC)