[CssSelector] tweaked README file (closes #8287)
This commit is contained in:
parent
46cb3b8095
commit
caaaec3155
@ -13,24 +13,21 @@ equivalents:
|
|||||||
HTML and XML are different
|
HTML and XML are different
|
||||||
--------------------------
|
--------------------------
|
||||||
|
|
||||||
- The `CssSelector` component comes with an `HTML` extension which is enabled by default.
|
The `CssSelector` component comes with an `HTML` extension which is enabled by
|
||||||
- If you need to use this component with `XML` documents, you have to disable `HTML` extension.
|
default. If you need to use this component with `XML` documents, you have to
|
||||||
- `HTML` tag & attribute names are always lower-cased, with `XML` they are case-sensistive.
|
disable this `HTML` extension. That's because, `HTML` tag & attribute names
|
||||||
|
are always lower-cased, but case-sensitive in `XML`:
|
||||||
Disable & enable `HTML` extension:
|
|
||||||
|
|
||||||
// disable `HTML` extension:
|
// disable `HTML` extension:
|
||||||
CssSelector::disableHtmlExtension();
|
CssSelector::disableHtmlExtension();
|
||||||
|
|
||||||
// re-enable `HTML` extension:
|
// re-enable `HTML` extension:
|
||||||
CssSelector::enableHtmlExtension();
|
CssSelector::enableHtmlExtension();
|
||||||
|
|
||||||
What brings `HTML` extension?
|
When the `HTML` extension is enabled, tag names are lower-cased, attribute
|
||||||
- Tag names are lower-cased
|
names are lower-cased, the following extra pseudo-classes are supported:
|
||||||
- Attribute names are lower-cased
|
`checked`, `link`, `disabled`, `enabled`, `selected`, `invalid`, `hover`,
|
||||||
- Adds following pseudo-classes:
|
`visited`, and the `lang()` function is also added.
|
||||||
- `checked`, `link`, `disabled`, `enabled`, `selected`: used with form tags
|
|
||||||
- `invalid`, `hover`, `visited`: always select nothing
|
|
||||||
- Adds `lang()` function
|
|
||||||
|
|
||||||
Resources
|
Resources
|
||||||
---------
|
---------
|
||||||
|
Reference in New Issue
Block a user