mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 667518 - Don't ignore <link> href white-space only values. r=bzbarsky
This commit is contained in:
parent
defee71441
commit
8968056a3a
25
content/html/content/reftests/649134-2-ref.html
Normal file
25
content/html/content/reftests/649134-2-ref.html
Normal 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>
|
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user