mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 06:38:36 +00:00
Bug 444838. Correctly stringify all tokens instead of asserting on some. r+sr=dbaron
This commit is contained in:
parent
0dc69032d3
commit
19817e240e
9
layout/style/crashtests/444848-1.html
Normal file
9
layout/style/crashtests/444848-1.html
Normal file
@ -0,0 +1,9 @@
|
||||
<style>
|
||||
[^=foo
|
||||
</style>
|
||||
<style>
|
||||
[*=bar
|
||||
</style>
|
||||
<style>
|
||||
[$=baz
|
||||
</style>
|
@ -13,3 +13,4 @@ load 404470-1.html
|
||||
load 411603-1.html
|
||||
load 413274-1.xhtml
|
||||
load 437170-1.html
|
||||
load 444848-1.html
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user