mirror of
https://github.com/servo/servo.git
synced 2025-10-07 03:59:23 +01:00
Rename the element field of the DOM Node hierarchy
Renamed htmlelement, and element Fixes #924
This commit is contained in:
parent
0ca4c19b57
commit
2dbd065d91
77 changed files with 347 additions and 312 deletions
|
@ -9,14 +9,14 @@ use dom::window::Window;
|
|||
|
||||
/// An HTML comment.
|
||||
pub struct Comment {
|
||||
parent: CharacterData,
|
||||
element: CharacterData,
|
||||
}
|
||||
|
||||
impl Comment {
|
||||
/// Creates a new HTML comment.
|
||||
pub fn new(text: ~str) -> Comment {
|
||||
Comment {
|
||||
parent: CharacterData::new(CommentNodeTypeId, text)
|
||||
element: CharacterData::new(CommentNodeTypeId, text)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue