made type optional on linked style sheets

This commit is contained in:
peterl%netscape.com 1998-10-13 19:11:42 +00:00
parent 3e2cfb20c5
commit 32c0a6bc30
2 changed files with 2 additions and 2 deletions

View File

@ -2005,7 +2005,7 @@ HTMLContentSink::ProcessLINKTag(const nsIParserNode& aNode)
NS_RELEASE(sco);
if (rel.EqualsIgnoreCase("stylesheet")) {
if (type.EqualsIgnoreCase("text/css")) {
if ((0 == type.Length()) || type.EqualsIgnoreCase("text/css")) {
nsIURL* url = nsnull;
nsIUnicharInputStream* uin = nsnull;
nsAutoString absURL;

View File

@ -2005,7 +2005,7 @@ HTMLContentSink::ProcessLINKTag(const nsIParserNode& aNode)
NS_RELEASE(sco);
if (rel.EqualsIgnoreCase("stylesheet")) {
if (type.EqualsIgnoreCase("text/css")) {
if ((0 == type.Length()) || type.EqualsIgnoreCase("text/css")) {
nsIURL* url = nsnull;
nsIUnicharInputStream* uin = nsnull;
nsAutoString absURL;