Attribute values should be quoted
This commit is contained in:
parent
8858ee75a5
commit
7a03e238f0
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@
|
||||||
if( /data\-(markdown|separator|vertical|notes)/gi.test( name ) ) continue;
|
if( /data\-(markdown|separator|vertical|notes)/gi.test( name ) ) continue;
|
||||||
|
|
||||||
if( value ) {
|
if( value ) {
|
||||||
result.push( name + '=' + value );
|
result.push( name + '="' + value + '"' );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
result.push( name );
|
result.push( name );
|
||||||
|
|
Loading…
Reference in a new issue