Skip to content

Use "CSS.escape()" for building dynamic CSS selectors - #3218

Merged
lubber-de merged 2 commits into
fomantic:developfrom
mvorisek:css_escape
Mar 16, 2025
Merged

Use "CSS.escape()" for building dynamic CSS selectors#3218
lubber-de merged 2 commits into
fomantic:developfrom
mvorisek:css_escape

Conversation

@mvorisek

@mvorisek mvorisek commented Mar 15, 2025

Copy link
Copy Markdown
Contributor

extracted from #3205

Values in CSS selectors should never be dequoted (this is lossy operation), but instead of escaped using native CSS.escape(). This is described in https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape_static#in_context_uses.

Under normal usage this PR should imply no function change.

@mvorisek mvorisek changed the title Fix dynamic CSS selectors escape Use "CSS.escape" for building dynamic CSS selectors Mar 15, 2025
@mvorisek
mvorisek marked this pull request as ready for review March 16, 2025 00:06
@mvorisek mvorisek changed the title Use "CSS.escape" for building dynamic CSS selectors Use "CSS.escape()" for building dynamic CSS selectors Mar 16, 2025
@lubber-de

Copy link
Copy Markdown
Member

Please resolve conflicts, as i just merged #2584

@mvorisek

Copy link
Copy Markdown
Contributor Author

rebased

Comment thread src/definitions/modules/tab.js Outdated

@lubber-de lubber-de left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lubber-de
lubber-de merged commit 62e258f into fomantic:develop Mar 16, 2025
@lubber-de lubber-de added this to the 2.10.0 milestone Mar 16, 2025
@lubber-de lubber-de added type/feat Any feature requests or improvements lang/javascript Anything involving JavaScript labels Mar 16, 2025
@mvorisek
mvorisek deleted the css_escape branch March 16, 2025 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lang/javascript Anything involving JavaScript type/feat Any feature requests or improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants