YAFLogo

SSDExecutor
  • SSDExecutor
  • 66.4% (Friendly)
  • YAF Camper Topic Starter
13 years ago
I'm using the revision 5040 of YAF and I've noticed for sometime that unordered lists (I never tried any numbered lists) were not displaying correctly when viewed in the forum. The HTML that was saved was correct, but the rendered version was different. After looking at the HTML, I noticed that the UL tag was being altered and moved in the DOM. For instance, the saved HTML:

<p><ul><li>something</li><li>something else</li></ul></p>

Would turn into

<p><ul&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="easyquote">
</ul&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span>
<li>something</li><li>something else</li></p>

Thus making the UL not appear correctly. After looking at the code and revisions I saw that at revision 4906 the regular expression was added for "easy quoting" and that was what was being done to the HTML before rendering. Commenting this line (line 591 in YafBBCode.cs) out of my current revision (5040) seems to have fixed this problem and the HTML is formatted as it should be. What's the purpose of the regular expression? I think it needs to be tweaked to account for what's occurring with the UL (and presumably) the OL tags.

Sponsor