Auto merge of #5733 - marcusklaas:issue-5719, r=Manishearth

This closes issue https://github.com/servo/servo/issues/5719.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5733)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-04-17 07:53:06 -05:00
commit c3ed0fd573

View file

@ -794,7 +794,7 @@ impl Document {
implementation: Default::default(),
location: Default::default(),
content_type: match content_type {
Some(string) => string.clone(),
Some(string) => string,
None => match is_html_document {
// https://dom.spec.whatwg.org/#dom-domimplementation-createhtmldocument
IsHTMLDocument::HTMLDocument => "text/html".to_owned(),