@@ -13,24 +13,21 @@ equivalents:
13
13
HTML and XML are different
14
14
--------------------------
15
15
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 ` :
21
20
22
21
// disable `HTML` extension:
23
22
CssSelector::disableHtmlExtension();
23
+
24
24
// re-enable `HTML` extension:
25
25
CssSelector::enableHtmlExtension();
26
26
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.
34
31
35
32
Resources
36
33
---------
0 commit comments