Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
simplify bdi check
  • Loading branch information
patrickkettner committed Nov 27, 2015
1 parent 078aeab commit 8d51691
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions feature-detects/elem/bdi.js
Expand Up @@ -11,17 +11,12 @@
/* DOC
Detect support for the bdi element, a way to have text that is isolated from its possibly bidirectional surroundings
*/
define(['Modernizr', 'createElement', 'docElement', 'isSVG'], function(Modernizr, createElement, docElement, isSVG) {
define(['Modernizr', 'createElement', 'docElement'], function(Modernizr, createElement, docElement) {
Modernizr.addTest('bdi', function() {
var div = createElement('div');
var bdi = createElement('bdi');
var value = '&#1573';

if (isSVG) {
value = 'إ';
}

bdi.innerHTML = value;
bdi.innerHTML = 'إ';
div.appendChild(bdi);

docElement.appendChild(div);
Expand Down

0 comments on commit 8d51691

Please sign in to comment.