Skip to content

Releases: facelessuser/soupsieve

1.8.0

17 Feb 03:19
49caacb
Compare
Choose a tag to compare

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 from SyntaxError, but will most likely be derived from Exception in the future.

1.7.3

23 Jan 06:12
0f489f4
Compare
Choose a tag to compare

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

18 Jan 15:43
cdeaa6a
Compare
Choose a tag to compare

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

13 Jan 15:41
5639b5e
Compare
Choose a tag to compare

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

10 Jan 14:57
14c1018
Compare
Choose a tag to compare

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

04 Jan 04:02
Compare
Choose a tag to compare

1.6.2

  • FIX: Fix pattern compile issues on Python < 2.7.4.
  • FIX: Don't use \d in Unicode Re patterns as they will contain characters outside the range of [0-9].

1.6.1

02 Jan 00:33
fdd9835
Compare
Choose a tag to compare

1.6.1

  • FIX: Fix warning about not importing Mapping from collections.abc.

1.6.0

31 Dec 02:57
Compare
Choose a tag to compare

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

28 Dec 17:49
129dcfa
Compare
Choose a tag to compare

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

27 Dec 05:30
8954ee4
Compare
Choose a tag to compare

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.