- From: timeless <timeless@gmail.com>
- Date: Fri, 16 Oct 2015 01:19:04 -0400
- To: public-annotation@w3.org
> A developer may wish to design a webapp in which only the text in the active editing subtreee [sp] > To ensure interoperability, this specification describes a default find-text algorithm, but this can be overriden [sp] by the developer. > Behavior for documents using legacy character encoding, such as windows-1252, may be anomolous [sp]. > The constructor takes an optional property object to set the selecotr [sp] attributes. > If the value of this attribute is true, the User Agent MUST follow the algorthim [sp] defined in section 8 Searching and Matching, > This return object is in the form of a Promise, so the results can be analyzed and subsquent [sp] search operations can be performed by incrementing the start range position based on the matched range (if any). > If execution method is search, let result be dom range object. dom would object, please write `DOM Range`, I think. > This examples section is very much in flux, and the syntx [sp] may be wrong. > A* enumerated value representing whether a search MUST match exact characters, or use a particular Unicode character equivalence. An -- I'm not going to flag all of these. > U+3000 (ideographic space).. Either too many or too few `.`s > The search MUST map all code points to their case-fold mappings defined in the Unicode Common Locale Data Repository [[!UAX35]. `[[`? > In the search content, target text, and prefix and suffix text, that should probably be: In the search content, target text, prefix text, and suffix text, without coloring the `and`... contrast: > Let target text be the discrete values of text, prefix, and suffix. > the search operation is begun. please don't use 'begun' > halt these steps. is `halt` standard? i half expect `terminate`. to me, `halt` might be `resumable`... > If caseFolding is not null or the value is not none: or => and ? > 21.1. If wrap is true and search cursor is search cursor starting position: > 21.1.1. If execution method is searchAll, resolve doc's pending promise with result. > 21.2. Halt this algorithm. > 21.3. If execution method is searchAll: I don't think this is reachable. > Probably needs more detail. :P This is way overindented, can you rewrite with halts for the `else` cases or something? [1] http://www.w3.org/TR/2015/WD-findtext-20151015/ On Thu, Oct 15, 2015 at 8:16 AM, Notifier <notifier@aries.w3.org> wrote: > FindText API > > http://www.w3.org/TR/2015/WD-findtext-20151015/ > > Abstract > > This section is non-normative. > > The FindText API specification describes an API for finding ranges of text in a document or part of a document, using a variety of selection criteria.Note > > This specification is a strawman, intended to collect feedback. It is not stable, and radical ideas for improvement are welcome. > > Status of the Document > > This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the W3C technical reports index at http://www.w3.org/TR/. > > The API described in this document is still experimental.Note > > Feedback on this specification can be made via annotations. All annotations are archived on the public-annotation@w3.org mailing list (archives), and on the searchable WebPlatform Notes stream; see more details on Notes.WebPlatform.org. Note: To create annotations, you must have a WebPlatform.org account; do not use your W3C credentials. > > This document was published by the Web Annotation Working Group and the Web Platform Working Group as a First Public Working Draft. This document is intended to become a W3C Recommendation. If you wish to make comments regarding this document, please send them to public-annotation@w3.org (subscribe, archives). All comments are welcome. > > Publication as a First Public Working Draft does not imply endorsement by the W3C Membership. This is a draft document and may be updated, replaced or obsoleted by other documents at any time. It is inappropriate to cite this document as other than work in progress. > > This document was produced by groups operating under the 5 February 2004 W3C Patent Policy. W3C maintains a public list of any patent disclosures (Web Annotation Working Group) and a public list of any patent disclosures (Web Platform Working Group) made in connection with the deliverables of each group; these pages also include instructions for disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains Essential Claim(s) must disclose the information in accordance with section 6 of the W3C Patent Policy. > > This document is governed by the 1 September 2015 W3C Process Document. >
Received on Friday, 16 October 2015 05:19:32 UTC