Ive been adding Contour forms in both the Richtext editor and the template and both are causing markup validation errors. The problem is the default stylesheet for the form is included in the embed as follows:
Since the embed is always going to be in the <body> tag and you can't have <link> tags anywhere else except within the <head> tag this will always be invalid. I've been checking it using the W3C Validator (http://validator.w3.org/) and the markup is XHTML 1.0 Strict.
Does anyone know if I can fix this?
Thanks, Nick
Umbraco 4.0.3, Contour 1.0.7, ASP.NET 3.5, Windows XP SP3, IIS 5.1
Markup Validation of Contour forms
Hi,
Ive been adding Contour forms in both the Richtext editor and the template and both are causing markup validation errors. The problem is the default stylesheet for the form is included in the embed as follows:
Since the embed is always going to be in the <body> tag and you can't have <link> tags anywhere else except within the <head> tag this will always be invalid. I've been checking it using the W3C Validator (http://validator.w3.org/) and the markup is XHTML 1.0 Strict.
Does anyone know if I can fix this?
Thanks, Nick
Umbraco 4.0.3, Contour 1.0.7, ASP.NET 3.5, Windows XP SP3, IIS 5.1
Hi Nick,
If you add a runat="server" to your head then it will be aded there.
Or you can disable the stylesheet from being added automaticly (form properties) and add it yourself
Perfect thanks Tim,
runat="server" in the <head> worked a treat.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.