manimonji's avatar

Quirks mode, doctype IS in layout.

I have this blade page

I have the doctype in layout, this:

, but every page using this says Quirks Mode. adding it to the blade page itself instead of layout solves it. like this:

page html after it's rendered:

0 likes
5 replies
manimonji's avatar

Thanks, I'll look that up. Yet I think it should work, not marked as deprecated in the document page you've sent.

Glukinho's avatar

Can you provide generated result html to check?

manimonji's avatar

Surely the generated one doesn't have a doctype

Glukinho's avatar

Then you've got something mixed up. Blade templates you gave should produce doctype if it is in layout you extend. Laravel doesn't cut out your doctype.

1 like

Please or to participate in this conversation.