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"
"http://www.w3.org/TR/html4/frameset.dtd">
<html lang="en">
<head>
</head>
<frameset cols='50%,50%'>
        <frame src=' frame_left '  name='frame_left'>
        <frame src=' frame_right ' name='frame_right'>
    <noframes>
        Error: no frames support in your browser.
    </noframes>
</frameset>

How can I get pycharm to respect the DOCTYPE and realize the <frame> tag is OK?
3 comments
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.
0
Comment actions Permalink
How can we see what doctype PyCharm has applied to a particular file?
0
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.
0

Please sign in to leave a comment.