webcode-tk 1.1.11__tar.gz → 1.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: webcode-tk
3
- Version: 1.1.11
3
+ Version: 1.2.0
4
4
  Summary:
5
5
  License: MIT
6
6
  Keywords: html,validation,css
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "webcode-tk"
3
- version = "1.1.11"
3
+ version = "1.2.0"
4
4
  description = ""
5
5
  authors = ["hundredvisionsguy <cwinikka@gmail.com>"]
6
6
  keywords = ["html", "validation", "css", ]
@@ -24,4 +24,4 @@ Modules exported by this package:
24
24
  - `validator_tools`: sends HTML or CSS code to the W3C Validator to check
25
25
  for errors.
26
26
  """
27
- __version__ = "1.1.11"
27
+ __version__ = "1.2.0"
@@ -1399,10 +1399,13 @@ def descendant_selector_applies(element: Element, sel: str) -> None:
1399
1399
  for ancestor in ancestor_list:
1400
1400
  id = ancestor[1]
1401
1401
  ancestor_element = __get_element_by_id(id)
1402
- selector = selector_list[current_pos]
1403
- cur_selector_applies = does_selector_apply(ancestor_element, selector)
1404
- if cur_selector_applies:
1405
- selector_list = selector_list[1:]
1402
+ if selector_list:
1403
+ selector = selector_list[current_pos]
1404
+ cur_selector_applies = does_selector_apply(
1405
+ ancestor_element, selector
1406
+ )
1407
+ if cur_selector_applies:
1408
+ selector_list = selector_list[1:]
1406
1409
  applies = not selector_list
1407
1410
  return applies
1408
1411
 
File without changes
File without changes