Issue #973Opened March 21, 2018by ryandeba0 reactions

[Question]: Doctype in the canvas iframe

Question

Hey @artf, I noticed the canvas iframe doesn't appear to have any doctype set on it, which causes it to be in quirks mode. Is this intentional? I'd like to set it to <!DOCTYPE html>, but doing so causes some positioning issues that you can see in this screenshot and demo.

Would you be open to a pull request that would allow the doctype to get set? I feel like exposing this in a config option (either a doctype string or perhaps a quirksMode boolean) would be the safest thing to do, but would like to get your thoughts before I continue exploring this.

Answers (3)

ryandebaMarch 22, 20180 reactions

This has suddenly become less relevant to the project that I'm working on, so I'm closing it for now.

peakramsSeptember 15, 20180 reactions

I am interested in a possible solution for this issue. For now I've worked around it by putting custom CSS for those quirks that have a solution via CSS, but the ability to use a DOCTYPE would better, I think.

lock[bot]September 17, 20190 reactions

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.