See: https://github.com/yui/yui3/pull/1163/files#r6255186