@@ -11,25 +11,26 @@ When detecting XHTML, Soup Sieve simply looks to see if the root element of an X
11
11
and does not currently look at the ` doctype ` . If in the future there is a need for stricter XHTML detection, this may
12
12
change.
13
13
14
- - HTML document types (HTML, HTML5) will have their tag names and attribute names treated without case
15
- sensitivity, like most browsers do.
14
+ - HTML document types (HTML, HTML5) will have their tag names and attribute names treated without case
15
+ sensitivity, like most browsers do.
16
16
17
- - XML document types (including XHTML) will have their tag names and attribute names treated with case sensitivity.
17
+ - XML document types (including XHTML) will have their tag names and attribute names treated with case sensitivity.
18
18
19
- - HTML5, XHTML and XML documents will have namespaces evaluated per the document's support (provided via the
20
- parser). Some additional configuration is required when using namespaces, see [ Namespace] ( #namespaces ) for more
21
- information.
19
+ - HTML5, XHTML and XML documents will have namespaces evaluated per the document's support (provided via the
20
+ parser). Some additional configuration is required when using namespaces, see [ Namespace] ( #namespaces ) for more
21
+ information.
22
22
23
- !!! tip " Getting Proper Namespaces"
24
- The `html5lib` parser provides proper namespaces for HTML5, but `lxml`'s HTML parser will not. If you need
25
- namespace support for HTML5, consider using `html5lib`.
23
+ /// tip | Getting Proper Namespaces
24
+ The ` html5lib ` parser provides proper namespaces for HTML5, but ` lxml ` 's HTML parser will not. If you need
25
+ namespace support for HTML5, consider using ` html5lib ` .
26
26
27
- For XML, the `lxml-xml` parser (`xml` for short) will provide proper namespaces. It is generally suggested that
28
- `lxml-xml` is used to parse XHTML documents to take advantage of namespaces.
27
+ For XML, the ` lxml-xml ` parser (` xml ` for short) will provide proper namespaces. It is generally suggested that
28
+ ` lxml-xml ` is used to parse XHTML documents to take advantage of namespaces.
29
+ ///
29
30
30
- - While attribute values are generally treated as case sensitive, HTML5 and HTML treat the ` type ` attribute
31
- special. The ` type ` attribute's value is always case insensitive. This is generally how most browsers treat ` type ` . If
32
- you need ` type ` to be sensitive, you can use the ` s ` flag: ` #!css [type="submit" s] ` .
31
+ - While attribute values are generally treated as case sensitive, HTML5 and HTML treat the ` type ` attribute
32
+ special. The ` type ` attribute's value is always case insensitive. This is generally how most browsers treat ` type ` .
33
+ If you need ` type ` to be sensitive, you can use the ` s ` flag: ` #!css [type="submit" s] ` .
33
34
34
35
While Soup Sieve access is exposed through Beautiful Soup's API, Soup Sieve's API can always be imported and accessed
35
36
directly for more controlled tag selection if needed.
@@ -180,8 +181,9 @@ would normally cause an identifier to be invalid.
180
181
'�'
181
182
```
182
183
183
- !!! new "New in 1.9.0"
184
- ` escape ` is a new API function added in 1.9.0.
184
+ /// new | New in 1.9.0
185
+ ` escape ` is a new API function added in 1.9.0.
186
+ ///
185
187
186
188
## ` soupsieve.compile() `
187
189
0 commit comments