enabled empty element support in StrictDTD

This commit is contained in:
rickg%netscape.com 2000-05-15 07:58:53 +00:00
parent 4ca734a033
commit 9617ab3c64
4 changed files with 4 additions and 4 deletions

View File

@ -765,7 +765,7 @@ nsresult COtherDTD::HandleStartToken(CToken* aToken) {
PRBool theTagWasHandled=PR_FALSE;
switch(theChildTag) {
switch(theChildTag) {
case eHTMLTag_html:
if(!HasOpenContainer(theChildTag)) {

View File

@ -206,7 +206,7 @@ public:
PRInt32 result=-1;
if(mTag!=aTag) {
if(HasOptionalEndTag(this)) {
if(HasOptionalEndTag(this) && (0<anIndex)) {
eHTMLTags theGrandParentTag=aContext->TagAt(--anIndex);
CElement *theGrandParent=GetElement(theGrandParentTag);
if(theGrandParent) {

View File

@ -765,7 +765,7 @@ nsresult COtherDTD::HandleStartToken(CToken* aToken) {
PRBool theTagWasHandled=PR_FALSE;
switch(theChildTag) {
switch(theChildTag) {
case eHTMLTag_html:
if(!HasOpenContainer(theChildTag)) {

View File

@ -206,7 +206,7 @@ public:
PRInt32 result=-1;
if(mTag!=aTag) {
if(HasOptionalEndTag(this)) {
if(HasOptionalEndTag(this) && (0<anIndex)) {
eHTMLTags theGrandParentTag=aContext->TagAt(--anIndex);
CElement *theGrandParent=GetElement(theGrandParentTag);
if(theGrandParent) {