This commit is contained in:
HyunJune Kim 2013-12-12 13:14:37 +09:00
parent a5aabefa4c
commit a7865495f6
5 changed files with 49 additions and 30 deletions

View file

@ -116,7 +116,8 @@ 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() {
let word_lower = word.to_ascii_lower();
modes |= match word_lower.as_slice() {
"allow-same-origin" => AllowSameOrigin,
"allow-forms" => AllowForms,
"allow-pointer-lock" => AllowPointerLock,