Bug 667518 - Don't ignore <link> href white-space only values. r=bzbarsky

This commit is contained in:
Mats Palmgren 2011-06-30 22:09:26 +02:00
parent defee71441
commit 8968056a3a
3 changed files with 26 additions and 2 deletions

View File

@ -0,0 +1,25 @@
<!DOCTYPE HTML>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Testcase for bug </title>
<style>
#ie {
border: 5px solid red;
}
#ie {
display: block;
}
#moz {
color: blue;
/* display: none; */
}
</style>
</head>
<body>
<p id="foo">foo</p>
<p id="ie">ie</p>
<p id="moz">moz</p>
</body>
</html>

View File

@ -22,7 +22,7 @@ include autofocus/reftest.list
== 596455-2b.html 596455-ref-2.html
== 610935.html 610935-ref.html
== 649134-1.html 649134-ref.html
== 649134-2.html 649134-ref.html
== 649134-2.html 649134-2-ref.html
== hidden-1a.html hidden-1-ref.html
== hidden-1b.html hidden-1-ref.html

View File

@ -397,7 +397,6 @@ nsHTMLLinkElement::GetStyleSheetURL(PRBool* aIsInline)
*aIsInline = PR_FALSE;
nsAutoString href;
GetAttr(kNameSpaceID_None, nsGkAtoms::href, href);
href.Trim(" \t\n\r\f"); // trim HTML5 whitespace
if (href.IsEmpty()) {
return nsnull;
}