Removing unnecessary string trimming

This commit is contained in:
MechaXL 2014-08-04 16:06:43 -05:00
parent 817d232f2b
commit 51cdc06c6a

View file

@ -521,8 +521,7 @@ impl<'a> DocumentMethods for JSRef<'a, Document> {
});
});
let v: Vec<&str> = split_html_space_chars(title.as_slice()).collect();
let title = v.connect(" ");
title.as_slice().trim().to_string()
v.connect(" ")
}
// http://www.whatwg.org/specs/web-apps/current-work/#document.title