yakme icon indicating copy to clipboard operation
yakme copied to clipboard

Remove attributes with value "null"

Open xong opened this issue 4 years ago • 2 comments

This allows to explicitly remove attributes, e. g. the controls attribute.

xong avatar Feb 04 '21 09:02 xong

Verstehe nicht. Wenn, dann gehört die Änderung m.E. in rex_string::buildAttributes. Aber man verliert dann Attribute dieser Art <video controls></video>. Und das ist sicherlich nicht gewollt.

tbaddade avatar Feb 04 '21 09:02 tbaddade

Es geht genau darum, dass das controls-Attribut nicht ausgegeben werden darf. Wenn ich bei buildAttributes ein Attribut nicht benötige, übergebe ich es einfach nicht.

xong avatar Feb 04 '21 09:02 xong