You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using ....
The reason align is not allowed for non-table elements, is because it's not proper XHTML syntax. You're supposed to use float instead to align elements.
Now, I don't understand why your RadButton would have align text on the text property because I don't see it anywhere on the demo pages. Are you adding it yourself or is that how the control is rendering automatically?
answered on 12 Sep 2011, 10:26 AM
Could you please elaborate how exactly do you perform the validation with the W3C validator? If you do it by URI (Validate by URI), then the W3C validator might present itself to the ASP.NET server as a very old browser, and that's why such attributes get applied to the <span/> element. Could you please view the page in some of the modern browsers (FireFox, IE9, Chrome), then View the Source of the page, copy it and "Validate by Direct Input"? I performed that and everything was OK.
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?
Telerik Public Issue Tracking
system and vote to affect the priority of the items
thanks for your reply.
@Kevin: As you can see my markup, I do not put align property myself. It is rendered automatically - better to say w3c validator has found this property. Nevertheless if I open Show Source window in my IE8 browser no such property can be found. I am little confused in this matter.
As I said in my previous reply, the W3C validator (http://validator.w3.org) presents itself to the web server as a very old browser, and that's why the RadButton renders such HTML. Render the page in some modern browser (FireFox, Chrome, Safari, IE9, Opera), view the page source and then validate it by direct input. You will notice that everything is OK. Here is a video showing this: http://screencast.com/t/dYcbQ9tXhev.
We can configure the ASP.NET to perceive the W3Validator as a more capable browser by including a .browser file in the App_Browsers file. I have attached such file to the thread. Please include it in your application and test to see if you get the same behavior.
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.