mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Cleanup build_element_from_tag's signature.
This commit is contained in:
parent
b4559334bb
commit
7700a892fc
2 changed files with 5 additions and 6 deletions
|
@ -235,13 +235,12 @@ impl Document {
|
|||
}
|
||||
|
||||
pub fn CreateElement(&self, abstract_self: AbstractDocument, local_name: &DOMString) -> Fallible<AbstractNode<ScriptView>> {
|
||||
let cx = self.get_cx();
|
||||
let local_name = null_str_as_empty(local_name);
|
||||
if !is_valid_element_name(local_name) {
|
||||
return Err(InvalidCharacter);
|
||||
}
|
||||
let local_name = local_name.to_ascii_lower();
|
||||
Ok(build_element_from_tag(cx, local_name, abstract_self))
|
||||
Ok(build_element_from_tag(local_name, abstract_self))
|
||||
}
|
||||
|
||||
pub fn CreateDocumentFragment(&self, abstract_self: AbstractDocument) -> AbstractNode<ScriptView> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue