From: SourceForge.net <no...@so...> - 2004-01-10 20:15:27
|
Bugs item #828316, was opened at 2003-10-22 18:01 Message generated for change (Comment added) made by fgiust You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=113153&aid=828316&group_id=13153 Category: Tidy functionality Group: None Status: Open Resolution: None >Priority: 7 Submitted By: Peter Chase (chase_p_a) >Assigned to: fabrizio giustina (fgiust) Summary: FRAMEBORDER attribute of IFRAME gives spurious warning Initial Comment: I have an HTML document with the following doctype: - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> Within it, I have an IFRAME: - <iframe marginheight=0 marginwidth=0 frameborder=0 src="statusRefresh.m" height=0 width=0 scrolling="no"> Uh-oh, no IFRAME </iframe> If I parse this with JTidy, it produces a warning that the content is not compatible with the declared doctype. It says that it looks like "proprietory" HTML. By a process of elimination ... JTidy doesn't say what it's objecting to :-( ... I have determined that the warning is happening because JTidy doesn't allow the attribute "frameborder" in an "IFRAME" element. Removing the "frameborder=0" attribute eliminates the warning. I believe that "frameborder=0" is a valid attribute, and it is required for making an invisible IFRAME in Netscape 7. In the JTidy source, the AttributeTable class has the following line for frameborder: - new Attribute("frameborder", Dict.VERS_FRAMES, null), /* 0 or 1 */ I think that perhaps Dict.VERS_FRAMES should be replaced by Dict.VERS_IFRAMES or perhaps a bitwise OR of the two values. ---------------------------------------------------------------------- >Comment By: fabrizio giustina (fgiust) Date: 2004-01-10 21:15 Message: Logged In: YES user_id=798060 added test case ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=113153&aid=828316&group_id=13153 |