Both the self-closing and the close version of the <link> tag are valid XHTML 1.0 strict. Brendan: Are you sure you are using the correct doctype?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
In your masterpage, make sure to stick the doctype declaration next to the asp:content tag, a bit like so:
<asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
That way, the doctype will be rendered on the very first line of your html, which is required.
You guys both validate against another doc type than Brendan. The doctype that Brendan is talking about is the HTML5 doc type:
<!DOCTYPE html>
I just tried this as well, and the code won't validate with the HTML5 doc type. But I'm not sure I would call it a bug, because I guess that when the extension was created, no one knew/thought of the "new" HTML5 doc type.
Possible bug in umbraco.library:RegisterStyleSheetFile (please confirm)
I have the following declaration in an xslt file:
<xsl:value-of select="umbraco.library:RegisterStyleSheetFile('ombCss', '/css/openMoreBusiness.css')"/>Which outputs the following:
This doesn't validate against the W3C HTML checker for the following doctype:
<!DOCTYPE html>
What it should probably look like is:
Any ideas if this is a bug or not?
Looks like it's a bug but actually it validates for me...?
=
"This document was successfully checked as XHTML 1.0 Transitional!"
Both the self-closing and the close version of the <link> tag are valid XHTML 1.0 strict. Brendan: Are you sure you are using the correct doctype?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">In your masterpage, make sure to stick the doctype declaration next to the asp:content tag, a bit like so:
<asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">That way, the doctype will be rendered on the very first line of your html, which is required.
@Berntsen and Sebastian:
You guys both validate against another doc type than Brendan. The doctype that Brendan is talking about is the HTML5 doc type:
I just tried this as well, and the code won't validate with the HTML5 doc type. But I'm not sure I would call it a bug, because I guess that when the extension was created, no one knew/thought of the "new" HTML5 doc type.
/Kim A
Kim: Ahhh, I see... Furthermore I think a self-closing link-tag looks much nicer. Thanks for the heads up. :)
I still think it should be changed to be a self closing tag if this is going to cause issues for HTML 5 would you agree?
How would I go about raising this change?
Create a codeplex issue, this is the line that needs to be changed (\umbraco\presentation\library.cs in the RegisterStyleSheetFile method):
Should be changed to:
For the time being, if you need this, you could just base your own RegisterStyleSheetFile XSLT extension on this one of course.
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.