View TreeWalker flag to decide if the posstion should be in or next to text node #3771
Labels
package:engine
resolution:expired
This issue was closed due to lack of feedback.
status:stale
type:improvement
This issue reports a possible enhancement of an existing feature.
When you iterate view document using a
TreeWalker
and you enter or leave a text node we do not create the separate step like we do for elements. Now we always return the position next to the text node:However, one may want to have these positions always inside the text node:
Of to have an additional steps (
TEXT_START
andTEXT_END
) for walking and get both:To let user choose, the
TreeWalker
may have an additionaltextPosition
option with 3 possible values:inside
,beside
,both
.The text was updated successfully, but these errors were encountered: