Fix error when header_max is less than header_min

Created on 27 February 2025, about 1 month ago

Problem/Motivation

When header_max is less than header_min, the following message is generated:

Warning: DOMXPath::query(): Invalid expression in Drupal\toc_api\Toc->initialize() (line 236 of …/toc_api/src/Toc.php)

Proposed resolution

When header_max is less than header_min, set header_max to equal header_min. (Having min override max matches what CSS does for min-width and max-width.)

Remaining tasks

Agree on solution. Implement.

User interface changes

None except that no error is generated in this case.

API changes

None except that no error is generated in this case.

Data model changes

None.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024