Only call jQuery(this) when needed. Close gh-1260.
Fix #13223. Re-allow leading space in HTML. Close gh-1264.
(cherry picked from commit 00eafdf028f7730665ce1c05ab44e3f0bc80fbc2)
Use grunt option with grunt.util.spawn, close gh-1255.