I created a custom master page and uploaded it in Sitefinity. When I wrap a content placeholder in a "p" tag Sitefinity doesn't actually render the content between the tags. The content gets rendered below the end "p" tag.
I change the p to a div and it works as expected. Is there a place to submit bugs? Or view submitted bugs so I'm not spending time on already submitted bugs?
Posted by Community Admin on 11-Dec-2010 00:00
All Sitefinity controls render at least one wrapping DIV around the content they display. So the HTML from your example is supposed to look like the one below.
This markup is invalid, because P tags cannot contain DIV tags. I suppose you use Firebug to inspect the rendered HTML. So, because the HTML is invalid, Firebug applies its error algorithms to the HTML before displaying it. After the error algorithms are applied, the result is:
If you open page source, you will see that the HTML is rendered as expected.
The second case you have mentioned renders DIV in DIV which is valid HTML and Firebug displays it as expected.
You can remove the P tag from the masterpage and set it in the page. This will produce valid HTML.
Let us know if you need further help.
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
However, when I use the Content Block to add content to the placeholder it always gets wrapped in a div.
I've already created a custom control that provides the functionality I need but this is just another use case where the Content Block should have extended functionality where you can specify the begin/end tag.