string-html-forced.js 322 B

12345678910
  1. var fails = require('../internals/fails');
  2. // check the existence of a method, lowercase
  3. // of a tag and escaping quotes in arguments
  4. module.exports = function (METHOD_NAME) {
  5. return fails(function () {
  6. var test = ''[METHOD_NAME]('"');
  7. return test !== test.toLowerCase() || test.split('"').length > 3;
  8. });
  9. };