feature-detects/css/hyphens.js
Function runHyphenTest
has 127 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function runHyphenTest() {
if (!document.body && !document.getElementsByTagName('body')[0]) {
setTimeout(runHyphenTest, waitTime);
return;
}
Function test_hyphens_find
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function test_hyphens_find(delimiter) {
try {
/* create a sample input for resetting selection location, and a div container
* these have to be appended to document.body, otherwise some browsers can give false negative
* div container gets the doubled testword, separated by the delimiter
Function test_hyphens
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function test_hyphens(delimiter, testWidth) {
try {
/* create a div container and a span within that
* these have to be appended to document.body, otherwise some browsers can give false negative */
var div = createElement('div');