Convert tagName to uppercase ASCII per spec

http://dom.spec.whatwg.org/#dom-element-tagname
This commit is contained in:
Brandon Frohs 2013-08-31 02:55:06 -04:00
parent 7ea10ff8af
commit 02437f7e87
3 changed files with 7 additions and 2 deletions

View file

@ -19,6 +19,7 @@ use js::jsapi::{JSContext, JSObject};
use std::cell::Cell;
use std::comm;
use std::str::eq_slice;
use std::ascii::StrAsciiExt;
use std::FromStr;
pub struct Element {
@ -171,7 +172,7 @@ impl<'self> Element {
impl Element {
pub fn TagName(&self) -> DOMString {
str(self.tag_name.to_owned())
str(self.tag_name.to_owned().to_ascii_upper())
}
pub fn Id(&self) -> DOMString {