Post AkYhJvUkMl2nyPf9SC by hjvt@hachyderm.io
 (DIR) More posts by hjvt@hachyderm.io
 (DIR) Post #AkYgIYmHF7WXH0eAnQ by SuperDicq@minidisc.tokyo
       2024-08-02T13:53:29.297Z
       
       6 likes, 2 repeats
       
       Today I encountered the funniest bug ever at work.There was one page that started showing a little Palestian flag 🇵🇸 in the top left corner of the screen, seemingly for no reason.The cause of the bug turned out to be a left over debug echo in the page script.Why the hell would this cause a Palestinian flag to be rendered?  * The echo gets inserted at the start of the page (before <!doctype html>).  * Doctype becomes invalid, browser goes into Quirks Mode.  * In Quirks Mode CSS classes become case insensitive.  * We have a FlagKit CSS file that defines classes for flags using two letter country codes with "PS" for "Palestine".  * We also have a CSS file for "Perfect Scrollbar" that has a shorthand CSS class called "ps".  * Quirks mode applied the "PS" styling to the "ps" tag.
       
 (DIR) Post #AkYgXmUAYjwo8DR2dE by sun@shitposter.world
       2024-08-02T13:56:19.051767Z
       
       1 likes, 1 repeats
       
       @SuperDicq COMPUTER SAYS RIVER TO THE SEA
       
 (DIR) Post #AkYhJvUkMl2nyPf9SC by hjvt@hachyderm.io
       2024-08-02T13:54:53Z
       
       0 likes, 0 repeats
       
       @SuperDicqBrowsers were a mistake
       
 (DIR) Post #AkYhJwBzlxdg8Xtgrg by SuperDicq@minidisc.tokyo
       2024-08-02T14:04:58.396Z
       
       0 likes, 0 repeats
       
       @hjvt@hachyderm.io I'm not a front-end dev and I almost never touch the front-end here thankfully.