From 98c77a86c486e6f40ed53a3782d16ceecd32140b Mon Sep 17 00:00:00 2001 From: Tetsuharu OHZEKI Date: Thu, 31 Oct 2013 22:46:26 +0900 Subject: [PATCH] HTMLDirectoryElement should be 'dir'. Fix #1159 --- src/components/script/html/hubbub_html_parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/script/html/hubbub_html_parser.rs b/src/components/script/html/hubbub_html_parser.rs index 4ed1981b8ed..d6883cb8acc 100644 --- a/src/components/script/html/hubbub_html_parser.rs +++ b/src/components/script/html/hubbub_html_parser.rs @@ -231,7 +231,7 @@ pub fn build_element_from_tag(cx: *JSContext, tag: &str, document: AbstractDocum handle_element!(cx, document, tag, "canvas", HTMLCanvasElementTypeId, HTMLCanvasElement, []); handle_element!(cx, document, tag, "data", HTMLDataElementTypeId, HTMLDataElement, []); handle_element!(cx, document, tag, "datalist",HTMLDataListElementTypeId, HTMLDataListElement, []); - handle_element!(cx, document, tag, "directory",HTMLDirectoryElementTypeId, HTMLDirectoryElement, []); + handle_element!(cx, document, tag, "dir", HTMLDirectoryElementTypeId, HTMLDirectoryElement, []); handle_element!(cx, document, tag, "div", HTMLDivElementTypeId, HTMLDivElement, []); handle_element!(cx, document, tag, "dl", HTMLDListElementTypeId, HTMLDListElement, []); handle_element!(cx, document, tag, "embed", HTMLEmbedElementTypeId, HTMLEmbedElement, []);