Skip to content
Browse files

simplify bdi check

  • Loading branch information...
patrickkettner committed Nov 27, 2015
1 parent 078aeab commit 8d516915f347a120eab01fff9695a93e0372ea55
Showing with 2 additions and 7 deletions.
  1. +2 −7 feature-detects/elem/bdi.js
@@ -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 = 'إ';


0 comments on commit 8d51691

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.