Re: [csswg-drafts] [css-selectors] add numeric comparisons on attribute values (#5890)

> It's not much clear how n would work with ^=, $=, etc.

I assume it wouldn't. Using it would be a syntax error.

> And it could cover some usecases, but it doesn't address inequalities < <= > >=

Right, inequalities are vital for this use-case, so this wouldn't really help.

A flag doesn't really add anything anyway - attribute selectors currently require the value to be an ident or a string, so numbers are invalid. Thus `[foo=5]` would already unambiguous as a numeric comparison rather than a string comparison.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5890#issuecomment-1312272942 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 11 November 2022 23:55:52 UTC