You need to sign in to do that
Don't have an account?
patros
HTML Strangeness
I have some questions/issues with how Visualforce renders the final HTML to the browser. My apologies if any of these have already been discussed. Please let me know if any of these are my problem or a bug. Here goes:
- I get duplicate DOCTYPE definitions when I use apex:include. It appears that the included page renders a new DOCTYPE reference at its position in the page.
- The <body> tag is not supplied when sidebar="false" and showHeader="false" in the apex:page attributes.
- I understand the purpose behind rendering <span> tags for all components, but it would be really nice to optionally restrict this. The added tags throw off the DOM and make things generally ugly. For example, if I want to inject a jQuery control (or the like), there's a risk that the control won't work due to the added tags, and I have no control over their display.
try using apex:component rather than include
you can add a body tag in that case
check out the attribute layout= on many of the components, i think you can get a div insead of a span using the layout attribute.
this is my issue: I would like to have header and footer includes, I am using two components for these. the header has the opening html tag and the footer component has the closing tag.
Below is what gets rendered. I feel like I am sooo close, if I can remove the first doctype and html head span reference, I am ready to go. PLEASE help.
hey man... I got a solution somewhere else, wanted to share...