5 ms·
Node.js.dev is applying text-transform: capitalize to all its code examples
- jonplackett 4y agoWhich obviously stops them working...
- chiefalchemist 4y agoThat's not what I'm seeing.
- Accacin 4y agoApologies if I'm explaining where I needn't, but it's not the code, it's the copy around the code that I'm seeing capitalised.
- jprd 4y agoEwww, those examples are giving me hard to stomach Visual Basic 3 flashbacks. Obviously it is a style choice, and it runs the same, it just "feels" wrong. I keep thinking of that SNL sketch about the Avatar logo.
- seniorsassycat 4y agonot a style choice, javascript is case sensitive. capitol c const is not a keyword, and an example defines capitol f fs but later references lowercase fs. this is a bad css rule
- EgoIsMyFriend 4y agoit does not run the same, JavaScript is case sensitive. one does wonder however why and how the change happened
- SSchick 4y agoThis looks un-intentional, maybe file a bug with them? Why post this here?
- dawnerd 4y agoYep just looked and it's just a bad css rule. Nothing to see here. And looks like a fix is already going out https://github.com/nodejs/nodejs.dev/issues/2721 https://github.com/nodejs/nodejs.dev/issues/2721
- jonplackett 4y agoJust thought it was an amusing error
- deleted 4y ago[deleted]
- loige 4y agoI think this has been fixed here https://github.com/nodejs/nodejs.dev/pull/2713/files https://github.com/nodejs/nodejs.dev/pull/2713/files Probably just pending release
- ppetty 4y agoSo seriously, I agree that this seems like a bug. But it also seems easier in some cases it might benefit others. So similar to Show HN or Ask HN … Bug HN as a prefix for post titles like this? I really think however small there is value, and it’s still fair to reply “file a bug report.”