Bug 444838. Correctly stringify all tokens instead of asserting on some. r+sr=dbaron

This commit is contained in:
Boris Zbarsky 2008-07-11 18:49:46 -04:00
parent 0dc69032d3
commit 19817e240e
3 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,9 @@
<style>
[^=foo
</style>
<style>
[*=bar
</style>
<style>
[$=baz
</style>

View File

@ -13,3 +13,4 @@ load 404470-1.html
load 411603-1.html
load 413274-1.xhtml
load 437170-1.html
load 444848-1.html

View File

@ -167,6 +167,15 @@ nsCSSToken::AppendToString(nsString& aBuffer)
case eCSSToken_Dashmatch:
aBuffer.AppendLiteral("|=");
break;
case eCSSToken_Beginsmatch:
aBuffer.AppendLiteral("^=");
break;
case eCSSToken_Endsmatch:
aBuffer.AppendLiteral("$=");
break;
case eCSSToken_Containsmatch:
aBuffer.AppendLiteral("*=");
break;
case eCSSToken_Error:
aBuffer.Append(mSymbol);
aBuffer.Append(mIdent);