Page MenuHomePhabricator

Remex needs documentation of how to use its API
Open, Needs TriagePublic

Description

Remex could use a high-level API guide: this is how to parse a HTML document from a string; this is how to look for certain elements during the parse, etc. (Ideally using the utility class introduced in T217850: Remex could use some helper/utility classes, but perhaps also the "long way" as well.)

It should also document non-obvious interactions with the existing PHP DOMDocument classes, such as those described in the use cases for T217696: Remex doesn't set ID attributes, T217700: Remex doesn't uppercase tag/node names, T217708: Remex should offer an option to not set namespaceURI.