Not even sure where to start - just looking for maybe a point in the right direction.
I've got something adding markup prior to my doctype on some pages like this:
</div>
</div>
<!DOCTYPE HTML>
Can't find where this is coming from. Everything else is fine, it's just this extraneous markup.
Code:
Controller:
return view("progs.general.apps", compact('progs'));
progs.general.apps Top line:
@extends('progs.baseApps')
progs.baseApps Top Line:
@extends('main')
main Top Line:
<!DOCTYPE HTML>
<html>
<head> etc.
I'm new to Blade, but this is driving me crazy. I'd be grateful for any thoughts.
Depending on how big your project is, but have you tried to search for </div> in the whole project?
mengidd said:
Depending on how big your project is, but have you tried to search for </div> in the whole project?
Thank you - I should have thought of this. Had over 1000 </divs> and none were in a place to sit above the <DOCTYPE>. However, this did help me to find the answer
Turns out I had a </div> placed outside the correct section, and inside the js section (though still HTML). This mistake apparently made Laravel move the </div> to the top of the page.
Odd - but at least found it. And maybe someone else with same issue some day will see this before tearing out their hair.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community