Javascript [Electronic resources] : The Definitive Guide (4th Edition) نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Javascript [Electronic resources] : The Definitive Guide (4th Edition) - نسخه متنی

David Flanagan

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید











TreeWalker.previousNode( )return the previous node that is not filtered
out









Availability


DOM Level 2 Traversal


Synopsis


Node previousNode( );

Returns


The nearest node that precedes the current node in the document
source and is not filtered out, or null if there
is none.


Description


This method sets currentNode to the previous node
(in document source order) that is not filtered out and returns that
node. If there is no such node, or if the search for the previous
node takes the TreeWalker outside of the root
subtree, currentNode remains unchanged and the
method returns null.

Note that this method "flattens" the document tree
structure and returns nodes in the order in which they appear in the
document source. Calling previousNode( ) may cause
the current node to move down, sideways, or up the document tree.
This type of flattening traversal can also be performed with
NodeIterator.previousNode( ).



    / 844