Jason Knight
Mar 3, 2023

--

That's a mistake a lot of people make when they first start using the developer tools. They show you what the browser is doing, not what it was told to do. Like the "code-like" area that LOOKS like markup isn't. It actually represents the live DOM including elements created by JavaScript and generated content from the CSS. Had someone try to say I was "putting classes on body in the markup" -- something I don't advocate -- when the class wasn't in the markup, it was added by JavaScript. Classic example of why "view source" is an entirely separate option from "inspect".

--

--

Jason Knight
Jason Knight

Written by Jason Knight

Accessibility and Efficiency Consultant, Web Developer, Musician, and just general pain in the arse

Responses (1)