Skip to content

fix(css): parse css selectors with escape sequences (for real)#8496

Merged
vtrifonov merged 4 commits intoNativeScript:masterfrom
RedHatter:css-escape-sequences
Apr 3, 2020
Merged

fix(css): parse css selectors with escape sequences (for real)#8496
vtrifonov merged 4 commits intoNativeScript:masterfrom
RedHatter:css-escape-sequences

Conversation

@RedHatter
Copy link
Copy Markdown

Currently NativeScript doesn't correctly parse escape sequences in CSS selectors. There was an issue and PR (#7688, #7689) about this problem previously but only escaping a slash was implemented. My PR fully supports escape sequence from the spec. This includes escaping any character or Unicode sequence.

PR Checklist

@cla-bot cla-bot bot added the cla: yes label Apr 2, 2020
@bundyo
Copy link
Copy Markdown
Contributor

bundyo commented Apr 3, 2020

LGTM 👍 (after adding the semicolon)

@vtrifonov vtrifonov merged commit 50eb372 into NativeScript:master Apr 3, 2020
@rigor789
Copy link
Copy Markdown
Member

@RedHatter I just spent the last hour or so debugging the .foo\:bar selector. Traced it back to the simpleIdentifierSelectorRegEx and found your PR! Thanks for fixing this - my patch was definitely a temporary workaround.

NathanWalker pushed a commit that referenced this pull request Aug 7, 2020
* fix(css): CSS escape sequences

* Missing semicolon

Co-authored-by: Vasil Trifonov <[email protected]>
NathanWalker pushed a commit that referenced this pull request Aug 7, 2020
* fix(css): CSS escape sequences

* Missing semicolon

Co-authored-by: Vasil Trifonov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants