Permalink
Browse files

fixes for a few errors

  • Loading branch information...
1 parent d7e9969 commit 078aeab1374d45e0e821a0c50ab81452bb2bf0a6 @patrickkettner patrickkettner committed Nov 27, 2015
Showing with 10 additions and 5 deletions.
  1. +7 −2 feature-detects/elem/bdi.js
  2. +1 −1 feature-detects/elem/progress-meter.js
  3. +2 −2 test/browser/integration/caniuse.js
@@ -11,12 +11,17 @@
/* DOC
Detect support for the bdi element, a way to have text that is isolated from its possibly bidirectional surroundings
*/
-define(['Modernizr', 'addTest', 'createElement', 'docElement'], function(Modernizr, addTest, createElement, docElement) {
+define(['Modernizr', 'createElement', 'docElement', 'isSVG'], function(Modernizr, createElement, docElement, isSVG) {
Modernizr.addTest('bdi', function() {
var div = createElement('div');
var bdi = createElement('bdi');
+ var value = '&#1573';
- bdi.innerHTML = '&#1573';
+ if (isSVG) {
+ value = 'إ';
+ }
+
+ bdi.innerHTML = value;
div.appendChild(bdi);
docElement.appendChild(div);
@@ -1,7 +1,7 @@
/*!
{
"name": "progress Element",
- "caniuse": "progressmeter",
+ "caniuse": "progress",
"property": ["progressbar", "meter"],
"tags": ["elem"],
"builderAliases": ["elem_progress_meter"],
@@ -79,7 +79,7 @@ window.caniusecb = function(caniuse) {
localstorage: 'namevalue-storage',
mathml: 'mathml',
mediaqueries: 'css-mediaqueries',
- meter: 'progressmeter',
+ meter: 'progress',
multiplebgs: 'multibackgrounds',
mutationobserver: 'mutationobserver',
notification: 'notifications',
@@ -89,7 +89,7 @@ window.caniusecb = function(caniuse) {
performance: 'nav-timing',
picture: 'picture',
postmessage: 'x-doc-messaging',
- progressbar: 'progressmeter',
+ progressbar: 'progress',
promises: 'promises',
queryselector: 'queryselector',
regions: 'css-regions',

0 comments on commit 078aeab

Please sign in to comment.