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
Reading the source it looks like it only checks if the attribute is one of predefined attributes.
var isSimpleBoolean = createMapFromString('allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible');
var isBooleanValue = createMapFromString('true,false');
Would adding support for collapsing custom boolean attributes be supported? Something like customAttrBooleanCollapse?
unbiased-dev
changed the title
[BUG] collapseBooleanAttributes doesn't seem to work at all
[FEATURE] collapseBooleanAttributes doesn't seem to work at all
Mar 11, 2021
unbiased-dev
changed the title
[FEATURE] collapseBooleanAttributes doesn't seem to work at all
[FEATURE] collapseBooleanAttributes doesn't work with custom attributes
Mar 11, 2021
Given that <a href="#" router="true" another="another" variant=variant test=true>Test</a> is not valid HTML5, I don't think it makes sense to allow collapsing custom attributes.
Also, deciding which attributes are boolean is another issue altogether.
result
expected result
Are my expectations incorrect?
The text was updated successfully, but these errors were encountered: