html - VisualForce Pages automatically including "loose.dtd" in all pages -
whenever write vf page, see "loose.dtd" file being included automatically in html code(firebug/developer console).
doctype html public "-//w3c//dtd html 4.01 transitional//en" "http://www.w3.org/tr/html4/loose.dtd"
please suggest approach remove this, makes html code conflict ie.
this documented in salesforces documentation. default doctype loose, if want stricter or different doctype need specify using doctype attribute.
eg
<apex:page controller="pagecontroller" doctype="html-5.0"> more info here: http://www.salesforce.com/us/developer/docs/pages/content/pages_compref_page.htm
Comments
Post a Comment