United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4753048 : stddoclet: <NOFRAMES> not allowed outside <FRAMESET> element (invalid)

Details
Type:
Bug
Submit Date:
2002-09-25
Status:
Resolved
Updated Date:
2014-05-05
Project Name:
JDK
Resolved Date:
2002-10-25
Component:
tools
OS:
other
Sub-Component:
javadoc(tool)
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.4.0
Fixed Versions:
1.4.2 (mantis)

Related Reports

Sub Tasks

Description
Running W3C validator (http://validator.w3c.org) on the index.html page
gives the following error:

    Error: element "NOFRAMES" not allowed here; check which elements this 
    element may be contained within 

The problem is that <NOFRAMES> must be *inside* the <FRAMESET> element,
and typically follows a <FRAME> element.  However, the <NOFRAMES> tag 
currently follows the <FRAMESET> element, as shown here:

  10: <FRAMESET cols="20%,80%">
  11: <FRAMESET rows="30%,70%">
  12: <FRAME src="overview-frame.html" name="packageListFrame" title="All Packages">
  13: <FRAME src="allclasses-frame.html" name="packageFrame" title="All classes and interfaces (except non-static nested types)">
  14: </FRAMESET>
  15: <FRAME src="overview-summary.html" name="classFrame" title="Package, class and interface descriptions">
  16: </FRAMESET>
  17: <NOFRAMES>
  18: <H2>
  19: Frame Alert</H2>
  20: 
  21: <P>
  22: This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client.
  23: <BR>
  24: Link to<A HREF="overview-summary.html">Non-frame version.</A></NOFRAMES>

                                    

Comments
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
mantis

FIXED IN:
mantis

INTEGRATED IN:
mantis
mantis-b05


                                     
2004-06-14
PUBLIC COMMENTS

Fixed by moving printFrameWarning() inside printFrameDetails() in FrameOutputWriter.java

Regression test at:
<ws>/test/com/sun/javadoc/ValidHtml/ValidHtml.java

###@###.### 2002-09-25
                                     
2002-09-25
EVALUATION

This example is given in the W3C 4.0 spec as a proper use of <NOFRAMES>:

    <FRAMESET cols="50%, 50%">
        <FRAME src="main.html">
        <FRAME src="table_of_contents.html">
        <NOFRAMES>
        <P>Here is the <A href="main-noframes.html">
                 non-frame based version of the document.</A> 
        </NOFRAMES>
    </FRAMESET>

###@###.### 2002-09-25
                                     
2002-09-25



Hardware and Software, Engineered to Work Together