auto merge of #1388 : hyunjunekim/servo/cssissues, r=kmcallister

Fixed this issue ( https://github.com/mozilla/rust/issues/10683 )
This commit is contained in:
bors-servo 2013-12-13 15:40:13 -08:00
commit c5d81f13c1
5 changed files with 60 additions and 30 deletions

View file

@ -98,7 +98,9 @@ impl HTMLIFrameElement {
if "sandbox" == name {
let mut modes = AllowNothing as u8;
for word in value.split_iter(' ') {
modes |= match word.to_ascii_lower().as_slice() {
// FIXME: Workaround for https://github.com/mozilla/rust/issues/10683
let word_lower = word.to_ascii_lower();
modes |= match word_lower.as_slice() {
"allow-same-origin" => AllowSameOrigin,
"allow-forms" => AllowForms,
"allow-pointer-lock" => AllowPointerLock,