Update NodeIterator code to apply review comments.

This commit is contained in:
Jinwoo Song 2015-05-21 16:06:14 +09:00
parent cb2bdf1977
commit db25be7bf6
6 changed files with 238 additions and 206 deletions

View file

@ -1364,7 +1364,7 @@ impl<'a> DocumentMethods for JSRef<'a, Document> {
Range::new_with_doc(self)
}
// https://dom.spec.whatwg.org/#dom-document-createnodeiterator
// https://dom.spec.whatwg.org/#dom-document-createnodeiteratorroot-whattoshow-filter
fn CreateNodeIterator(self, root: JSRef<Node>, whatToShow: u32, filter: Option<NodeFilter>)
-> Temporary<NodeIterator> {
NodeIterator::new(self, root, whatToShow, filter)