Side navigation
#7660 closed feature (wontfix)
Opened November 30, 2010 10:30AM UTC
Closed November 30, 2010 11:30AM UTC
jQuery.support.minWidth
| Reported by: | Leonid Bayda <leonid.baida@gmail.com> | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 1.6 |
| Component: | support | Version: | 1.4.4 |
| Keywords: | Cc: | ||
| Blocked by: | Blocking: |
Description
It was necessary for me in my project to know does browser support minWidth or not. So I added this checking to $.support. It would be nice to see this feature in next release of jQuery.
/* jQuery.support.minWidth */
$(function() {
var
table = document.createElement('table'),
tr = table.appendChild(tr = document.createElement('tr')),
td = tr.appendChild(td = document.createElement('td'));
table.cellPadding = 0;
table.cellSpacing = 0;
td.innerHTML = '<div style="min-width: 150px;">';
document.body.appendChild(table);
$.support.minWidth = table.offsetWidth === 150;
document.body.removeChild(table).style.display = "none";
table = tr = td = null;
});
Thanks!
Attachments (0)
Change History (1)
Changed November 30, 2010 11:30AM UTC by comment:1
| component: | unfiled → support |
|---|---|
| priority: | undecided → low |
| resolution: | → wontfix |
| status: | new → closed |
Thanks for taking the time to contribute to the jQuery project by suggesting a new feature.
But I think this isn't going to be included in jQuery core. The docs for jQuery.support already explain why.