You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it('should return false if given element is allowed in root but not deeper',()=>{schema.registerItem('paragraph','$block');expect(schema.check({name: 'paragraph',inside: ['$root','paragraph']})).to.be.false;});
This test fails because the matching algorithm allow ignoring "inside" items which are not matching items from the paths where the element being checked is allowed. This is fine when the left side is ignored (e.g. so you can do inside: [ 'paragraph' ], without specifying $root), but the right sides should always match.
The text was updated successfully, but these errors were encountered:
While working on this I found quite a lot of tests which do not set the schema correctly. AFAICT now, these are mostly mistakes, some missing schema configurations, so we should be fine. I think that, in practice, this change in schema check algorithm will be ok.
This test fails because the matching algorithm allow ignoring "inside" items which are not matching items from the paths where the element being checked is allowed. This is fine when the left side is ignored (e.g. so you can do
inside: [ 'paragraph' ]
, without specifying$root
), but the right sides should always match.The text was updated successfully, but these errors were encountered: