]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/commit
Attempts to clean up generated HTML.
authordairiki <dairiki@96ab9672-09ca-45d6-a79d-3d69d39ca109>
Fri, 2 Mar 2001 00:24:17 +0000 (00:24 +0000)
committerdairiki <dairiki@96ab9672-09ca-45d6-a79d-3d69d39ca109>
Fri, 2 Mar 2001 00:24:17 +0000 (00:24 +0000)
commit815712eca0d717b1d346efa2043aa04fc23009ad
treeac347e5bd4d9c2e875892f7c76d40278dffac3a6
parent9a750ef864b782e352c804c226bece2e7e682710
Attempts to clean up generated HTML.

WikiTransform::SetHTMLMode():

  Eliminate the $tagtype argument, since somewhere along the line it
had lost all meaning.

  Check when pushing nested elements that the top-level element is of
a type which can contain other block-level elements. Elements of type
<p>, and <pre>, among others, are not allowed to contain other
block-level elements.

wtm_list_dl:
  Fix bug (which manifested itself only with non-empty <dt>s).

Some remaining problems which perhaps should be addressed:

Wtm_title_search, wtm_fulltext_search, wtm_mostpopular as well
as some of the the magic phpwiki: links (the ones which generate
forms) all generate some sort of block-level HTML element (either
<form>s or <dl>s.)  As noted above, these are not allowed within
<p> elements (and others).

Bold/italics:    __Bold ''BoldItalic__ Italic''
 ... it's contrived, but it will generate improperly nested HTML.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@456 96ab9672-09ca-45d6-a79d-3d69d39ca109
lib/transform.php