Commit c0f5cb66 authored by hyatt's avatar hyatt

Fix <font> so that behaves just like <i>, <b>, etc. Stop

	the (incorrect) allowance of blocks inside <font> tags.
	This fixes the mispositioning on avoyagetoarcturus.blogspot.com
	and fixes the vertical gaps on www.ve3d.com.

        * khtml/html/dtd.cpp:
        (DOM::checkChild):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2814 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 1549b911
2002-11-21 David Hyatt <hyatt@apple.com>
Fix <font> so that behaves just like <i>, <b>, etc. Stop
the (incorrect) allowance of blocks inside <font> tags.
This fixes the mispositioning on avoyagetoarcturus.blogspot.com
and fixes the vertical gaps on www.ve3d.com.
* khtml/html/dtd.cpp:
(DOM::checkChild):
2002-11-21 Maciej Stachowiak <mjs@apple.com>
* Makefile.am: Pass symroots for this tree to pbxbuild.
......
2002-11-21 David Hyatt <hyatt@apple.com>
Fix <font> so that behaves just like <i>, <b>, etc. Stop
the (incorrect) allowance of blocks inside <font> tags.
This fixes the mispositioning on avoyagetoarcturus.blogspot.com
and fixes the vertical gaps on www.ve3d.com.
* khtml/html/dtd.cpp:
(DOM::checkChild):
2002-11-21 Maciej Stachowiak <mjs@apple.com>
* Makefile.am: Pass symroots for this tree to pbxbuild.
......
2002-11-21 David Hyatt <hyatt@apple.com>
Fix <font> so that behaves just like <i>, <b>, etc. Stop
the (incorrect) allowance of blocks inside <font> tags.
This fixes the mispositioning on avoyagetoarcturus.blogspot.com
and fixes the vertical gaps on www.ve3d.com.
* khtml/html/dtd.cpp:
(DOM::checkChild):
2002-11-21 Maciej Stachowiak <mjs@apple.com>
* Makefile.am: Pass symroots for this tree to pbxbuild.
......
......@@ -570,6 +570,7 @@ bool DOM::checkChild(ushort tagID, ushort childID)
switch(tagID)
{
case ID_FONT:
case ID_TT:
case ID_I:
case ID_B:
......@@ -630,9 +631,6 @@ bool DOM::checkChild(ushort tagID, ushort childID)
// ADDRESS: ( _0 | P ) *
if( check_array(childID, tag_list_0) ) return true;
return (childID == ID_P);
case ID_FONT:
// special handling for FONT: (_0 | 3)
return check_array(childID, tag_list_3) || check_array(childID, tag_list_0);
case ID__KONQBLOCK:
if ( childID == ID__KONQBLOCK ) return false;
// Fall through!
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment