Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit caaaec3

Browse files
committed
[CssSelector] tweaked README file (closes #8287)
1 parent 46cb3b8 commit caaaec3

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

src/Symfony/Component/CssSelector/README.md

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,21 @@ equivalents:
1313
HTML and XML are different
1414
--------------------------
1515

16-
- The `CssSelector` component comes with an `HTML` extension which is enabled by default.
17-
- If you need to use this component with `XML` documents, you have to disable `HTML` extension.
18-
- `HTML` tag & attribute names are always lower-cased, with `XML` they are case-sensistive.
19-
20-
Disable & enable `HTML` extension:
16+
The `CssSelector` component comes with an `HTML` extension which is enabled by
17+
default. If you need to use this component with `XML` documents, you have to
18+
disable this `HTML` extension. That's because, `HTML` tag & attribute names
19+
are always lower-cased, but case-sensitive in `XML`:
2120

2221
// disable `HTML` extension:
2322
CssSelector::disableHtmlExtension();
23+
2424
// re-enable `HTML` extension:
2525
CssSelector::enableHtmlExtension();
2626

27-
What brings `HTML` extension?
28-
- Tag names are lower-cased
29-
- Attribute names are lower-cased
30-
- Adds following pseudo-classes:
31-
- `checked`, `link`, `disabled`, `enabled`, `selected`: used with form tags
32-
- `invalid`, `hover`, `visited`: always select nothing
33-
- Adds `lang()` function
27+
When the `HTML` extension is enabled, tag names are lower-cased, attribute
28+
names are lower-cased, the following extra pseudo-classes are supported:
29+
`checked`, `link`, `disabled`, `enabled`, `selected`, `invalid`, `hover`,
30+
`visited`, and the `lang()` function is also added.
3431

3532
Resources
3633
---------

0 commit comments

Comments
 (0)