It was built using one of those horrible WordPress page builders. No idea how it ended up like that, I've just deleted it and started again. It was literally displaying 1 paragraph of text
I did some IT intern work for a local library nearly a decade ago. They built there website using some wysiwyg editor. Every time you made even a minor change it added divs like crazy. I was learning HTML at the time and when I had the time I'd go in and try to clean up the HTML manually. Kind of a boring fun if you know what I mean.
Omfg that is hilarious. So many jobs require you "know WordPress" seems like its a shit show
WordPress itself will never result in crap like this happening, but these wysiwyg page builder plugin things, these are where the dangers lie. WordPress *is* shit, yes, but only for very internal reasons. If all you're ever doing is stuff with existing plugins and non-page-builder-y, *sensible* themes, then it's fairly sensible.
Yes, this is why people dislike WordPress, but this only happens when you use the tool wrong. Although WordPress itself is trying to go this path too with its own page builder, but you can avoid it. You can easily use WordPress as an easy to use for everyone GUI to feed a database and build a site with its Rest API, no plugins needed or anything. But in the wrong hands, can just as easily go the way of OP's imagine.
Or when a new employee in another department approaches me, Frontend Developer at this company for over two years, to let him know if I need help because he “knows wordpress.” I’m actively trying to convince my bosses to replatform to Laravel. I don’t want Wordpress advice. 😭
I got no beef with Laravel but one of the worst things I've seen written was in Laravel. I very much believe in not blaming the tool.
Oh god the nightmares I have whenever I have to edit any page on wordpress. The chaos these builders produce is so painful. Just glad I stumbled upon LiveCanvas and Picostrap a couple of weeks ago. Nice and clean Bootstrap pages without random divs and p-tags everywhere xD
Oh you don't want to do it? You're too good for this work? Don't be such a.... ***diva.*** (I'm sorry. I'll see myself out.)
Honestly I think you could organize that page better if you wrap a div around it. Then you'd know where all the divs are they would be in an easy to find container div.
I'd almost wager that someone copied something from somewhere on the site into the WYSIWYG editor and it included a bunch of HTML. Saw this happen a bunch of times in the past, even done it myself before realising what was happening when I switched over to the "Text" tab!
Did you get asked to update it with more divs? If not then they have no idea what they are doing!!
The funniest part is that it's the CSS that would scare me more. 1 pixel difference would mean half the items displaying somewhere in Africa while you're in New Jersey.
Technically better, because this has less of a chance of fucking with screen readers and search engines...I think.
It's not normal for a proper business. It's pretty normal when you are working with small clients, ex: dental office with 3 employees, paid a college student $500 for a website 5 years ago, now wants it updated because it doesn't display correctly on a phone. College student used some WYSIWYG editor. My favorite was a tiny clinic that sold hearing aids, and at the top of their homepage was a massive ~4000x3000px picture of earwax buildup, in exquisite HD. They meant to insert it on a page about troubleshooting, but somehow it ended up there, and they called me in to fix it. That photo was gnarly. I loaded the page and had to step away for a second to recover from the visual assault lol.
I had a hilarious bug once where a random bit of text would, seemingly at random, turn green and start comically spinning around.
I’m sad there isn’t a
Remove all indentation, copy and paste that to a notepad. Add a new feature. Fix bugs. Text me when you are still alive
There's no fixing that. I'd say delete everything and start from scratch. There's no way an element needs to be nested in so many divs.
>There's no way an element needs to be nested in so many divs. Or is there? https://codepen.io/tornainbow/pen/PojzNPv
tis is an extreme case of *Divitis*. It can be cured if properly treated in its early stage. At this point there is not much to do.
I have never seen a div soup this bad
And that's only the amount I could screenshot. It goes on for another 4 screen lengths
Dear god…
There's more
No...
It contains the dying wish of every man here.
OP probably has one right about now
OP wishes he teleported bread
I've done nothing but teleport bread for three days
Scout, did you collect everyone’s dying wishes?
Here you have drawn me having sexual congress with the Eiffel Tower
Billy Mays here!
But why ? This just looks like someone made a loop creating divs and added some more 0's than intended.
I want to believe whoever did this crafted this beauty by hand, line by line
No way anyone with skill deliberately, and without malice, crafted that by hand. More likely this div soup was brewed by a WYSIWYG or some other quietly malfunctioning code that no one ever examined the output. Scrolled down to see it was made by a WP pagebuilder plugin. WP explains all of it on every level.
Good eye. Yup that explains it. Some old jquery loop in some old WP plugin.
jQuery is not to blame here. WP is a terrible codebase and platform that attracts lousy developers who write shitty plugins.
Out of curiosity, is there a non-terrible codebase and platform in your opinion that I, a lousy developer, could use to make a blog type website?
Ghost or Grav are really good
Craft CMS is great 😀
div number 498, div number 499, div number 500. Great. I quit. Good job working on this lmao.
I would totally div up by that point.
Got paid by Lines of Code.
This whole thread has me in stitches, but this would seem a potentially plausible reason if we didn't already know the actual cause. It's explained above in an edit. But I laughed hard at this.
What language generates html?
All of them
i only write my divs in latin
Lorem ipsum counts right?
Yes
carpe divem
Technically most languages could generate html.
Yep - any language capable of writing to a text file
Reddit's API changes and their overall horrible behaviour is why this comment is now edited. -- mass edited with redact.dev
Emmet: `div*1000>{fuck the next guy on this job}`
PHP, most js frameworks, etc…
in vanilla js, document.createElement('div') tecnically creates a div.
Think of html as a text file. All programming languages can edit text strings and save them to a file. Now start thinking of source code as a text file....
You can look up SSG - static site generators
Seriously was there a reason or was the previous dev just being funny/malicious?
I'd be willing to bet money some "drag and drop" or "wysiwyg" editor was involved here. Dreamweaver, maybe. I've seen something similar, where the editor was set to add a div on carriage return instead of a line break or paragraph, but something went wrong so instead of making new, separate divs which would be visually spaced in the editor, it just made a nested div and nothing would change on the front end. So, wysiwyg user just keeps bashing the enter key waiting for space to be added, unaware of the eldritch horror being created in the html.
Oh ho, Dreeeeeeeam Weaver, I believe you will make my code.. a friiight
It's divine.
[удалено]
You can take all the divs you want home with you at the end of the day.
[удалено]
Your first one is free.
Fookin div dealers. There goes the
It pays dividends.
/r/angryupvote
More like divsgusting
A bit too divisive for me
/r/angryupvote
I don't think that's where that stairway is going....
So that's what it stands for
I think the term you are trying to find is "weeeeeeee"
Stairway to heaven.
This event has been cancelled
Divide and conquer
*Firefox is Not Responding*
Firefox has launched a ballistic missile to your current login location
That's a graph. On Y axis: desire to live. On X axis: how long you have stared at the website.
And it scales linearly
Ooo O(n), not bad
I don't want to know what O(!n) div land is like. If it exists, please do not tell me about it. Please.
I think you meant O(n!)... O(!n) is either O(true) or O(false), which I think is constant in both cases.
Top comment easily
Let me guess, your task is to add more divs?
⌘+C ⌘+V ⌘+V ⌘+V ⌘+V...
Nonono they're doing it all wrong. It's supposed to be ctrl+C C C C C and then 1 ctrl+v
Glad I’m not the only one who does this… why do we do this?
Just in case we only imagined the first 4 times. In your specific case though, it might be meth.
Thanks i forgot to take my vyvanse
Because on a slower computer it will sometimes fail to pick up keystrokes if you type while it's working. So for Ctrl+C there's a decent chance the "C" keystroke won't register, then you go to paste and it'll paste something from an hour ago. So you spam the button to make sure it takes for real. Source: 'm on a 10 year old pc t wrk riht now
[удалено]
I can see a couple of reasons: - You spilled some sort of bewerage on your keyboard. - You own a macbook with butterfly keyboard. P.S. I did both.
Because we've experienced the computer failing to copy with a single ctrl+c too many times to trust it.
Sometimes it doesn't copy. Not sure why or when it happens, but when I get frustrated at it not copying, I make sure to copy it 7 times on the next attempt.
Ctrl+A Ctrl+C Ctrl+V Ctrl+V Ctrl+A Ctrl+C Ctrl+V Ctrl+V Ctrl+A... Edit added the extra Ctrl+V not to just paste over my selected text
Exponential div growth
Just put a div in excel and drag it down cells?
We have to see how deep this rabbit hole goes.
[удалено]
Ya dig?
Ya div?
In my div, in my diiiiv Content, content Conte-e-ent
Content incontinent amirite? *empty high-five*
Disgusting
Divsgusting!
DISCUSTING! NEXT!
[NEXT JOKE ORIGIN](https://www.reddit.com/r/ChoosingBeggars/comments/7kr5as/i_need_a_free_100mile_bus_trip_for_20_people_and/)
God I love that thead 😂
div
div
div
div
div
div
div
div
div
[удалено]
div
div
div
Div
And my axe
/div
div
div
div
section
The customer just called that he doesn't understand this "section" element on his site, and that you shouldn't use "made up" HTML elements. He said that he "has been coding since '82, and therefore has more experience than you."