Releases: facelessuser/soupsieve
Releases · facelessuser/soupsieve
1.8.0
1.8.0
- NEW: Add custom selector support. (#92)(#108)
- FIX: Small tweak to CSS identifier pattern to ensure it matches the CSS specification exactly. Specifically, you can't have an identifier of only
-
. (#107) - FIX: CSS string patterns should allow escaping newlines to span strings across multiple lines. (#107)
- FIX: Newline regular expression for CSS newlines should treat
\r\n
as a single character, especially in cases such as string escapes:\\\r\n
. (#107) - FIX: Allow
--
as a valid identifier or identifier start. (#107) - FIX: Bad CSS syntax now raises a
SelectorSyntaxError
, which is still currently derived fromSyntaxError
, but will most likely be derived fromException
in the future.
1.7.3
1.7.3
- FIX: Fix regression with tag names in regards to case sensitivity, and ensure there are tests to prevent breakage
in the future. - FIX: XHTML should always be case sensitive like XML.
1.7.2
1.7.2
- FIX: Fix HTML detection for
type
selector. - FIX: Fixes for
:enabled
and:disabled
. - FIX: Provide a way for Beautiful Soup to parse selectors in a quirks mode to mimic some of the quirks of the old select method prior to Soup Sieve, but with warnings. This is to help old scripts to not break during the transitional period with newest Beautiful Soup. In the future, these quirks will raise an exception as Soup Sieve requires selectors to follow the CSS specification.
1.7.1
1.7.1
- FIX: Fix issue with
:has()
selector where a leading combinator can only be provided in the first selector in a relative selector list.
1.7.0
1.7.0
- NEW: Add support for
:in-range
and:out-of-range
selectors. (#60) - NEW: Add support for
:defined
selector. (#76) - FIX: Fix pickling issue when compiled selector contains a
NullSelector
object. (#70) - FIX: Better exception messages in the CSS selector parser and fix a position reporting issue that can occur in
some exceptions. (#72, #73) - FIX: Don't compare prefixes when evaluating attribute namespaces, compare the actual namespace. (#75)
- FIX: Split whitespace attribute lists by all whitespace characters, not just space.
- FIX:
:nth-*
patterns were converting numbers to base 16 when they should have been converting to base 10.
1.6.2
1.6.2
- FIX: Fix pattern compile issues on Python < 2.7.4.
- FIX: Don't use
\d
in UnicodeRe
patterns as they will contain characters outside the range of[0-9]
.
1.6.1
1.6.1
- FIX: Fix warning about not importing
Mapping
fromcollections.abc
.
1.6.0
1.6.0
- NEW: Add
closest
method to the API that matches closest ancestor. - FIX: Add missing
select_one
reference to module's__all__
.
1.5.0
1.5.0
- NEW: Add
select_one
method like Beautiful Soup has. - NEW: Add
:dir()
selector (HTML only). - FIX: Fix handling issues of HTML fragments (elements without a
BeautifulSoup
object as a parent). - FIX: Fix internal
nth
range check.
1.4.0
1.4.0
- NEW: Throw
NotImplementedError
for at-rules:@page
, etc. - NEW: Match nothing for
:host
,:host()
, and:host-context()
. - NEW: Add support for
:read-write
and:read-only
. - NEW: Selector patterns can be annotated with CSS comments.
- FIX:
\r
,\n
, and\f
cannot be escaped with\
in CSS. You must use Unicode escapes.