How to specify an HTML document type for hinting / syntax checking?

I have a django html template that uses (shudder) frames.   I know it has frames.  I need it to have frames.  But pycharm wants to mark it as invalid:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
<html lang="en">
<frameset cols='50%,50%'>
        <frame src=' frame_left '  name='frame_left'>
        <frame src=' frame_right ' name='frame_right'>
        Error: no frames support in your browser.

How can I get pycharm to respect the DOCTYPE and realize the <frame> tag is OK?
Comment actions Permalink
PyCharm does recognize the DOCTYPE; it highlights the <frame> tag as deprecated. You can turn off the inspection by pressing Alt-Enter on a frameset tag, then pressing the right arrow and selecting "Disable inspection" from the menu.
Comment actions Permalink
How can we see what doctype PyCharm has applied to a particular file?
Comment actions Permalink
We don't have any UI for that. The "Deprecated tags" inspection highlights all occurrences of <frame> and related tags regardless of the doctype. I can certainly understand why you don't find it useful; that's why I recommend you to simply turn off the inspection.

Please sign in to leave a comment.