Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attribute name only (no value) CSS selector throws if html attribute has a value. #905

Closed
m59peacemaker opened this issue Oct 25, 2017 · 0 comments

Comments

@m59peacemaker
Copy link
Contributor

m59peacemaker commented Oct 25, 2017

This is fine:

<button foo></button>

<style>
button[foo] {}
</style>

But this throws TypeError: operators[operator] is not a function:

<button foo="bar"></button>

<style>
button[foo] {}
</style>

REPL

Stack trace TypeError: operators[operator] is not a function at attributeMatches (Selector.ts:228) at _loop_1 (Selector.ts:163) at applySelector (Selector.ts:141) at Selector.apply (Selector.ts:30) at Stylesheet.ts:23 at Array.forEach () at Rule.apply (Stylesheet.ts:23) at Stylesheet.apply (Stylesheet.ts:343) at Element (preprocess.ts:427) at preprocess.ts:482
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant