D-Mack Media Forums

Full Version: xhtml compliance problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
There is a minor xhtml compliance error in recommendfriends.php

On lines 446 and 448, the html4 style 'readonly' should be changed to 'readonly="readonly"' for xhtml.

Regards
Phil
Hi
I have set the xhtmlConformace mode to strict.

Well, after going through the DNNWebControl source code I managed to change the <span> tag to <div> tag.

What I've done was overrides the TagKey method and return a div tag instead.

Here is the code, I added this into property section

<Browsable(False), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> _
Protected Overrides ReadOnly Property TagKey() As HtmlTextWriterTag
Get
Return HtmlTextWriterTag.Div
End Get
End Property


I've got a table-less skin and pass the xhtml 1.0 transitional validation.

Will require more work to validate with xhtml 1... any help would be appreciated.

Cheers
Reference URL's