bem / bem/bem-xjst

Nested mixes work wrong with strings

Open
#552 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
117
Forks
48
PR merge metrics
No merged PRs in 30d

Description

BEMJSON:
```js
{
block: 'b1',
mix: 'b2'
}
```

BEMHTML:
```js
block('b2')(
addMods()('b3')
);
```

Result:
```html


```

Expected:
```html


```

http://bem.github.io/bem-xjst/?version=8.9.1&engine=BEMHTML&template=block(%27b2%27)(%0A%20%20%20%20addMods()(%27b3%27)%0A)%3B&bemjson=%7B%0A%20%20%20%20block%3A%20%27b1%27%2C%0A%20%20%20%20mix%3A%20%27b2%27%0A%7D

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the BEMJSON and BEMHTML examples using the linked bem-xjst playground and compare the actual class output with the expected output. Trace how a string mix is processed together with nested addMods() behavior; done means the example produces b1 b2 b3 without the extra classes.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.