Ticket #8244 (closed bug: invalid)
jQuery can't correctly handle font names that end with a number
|Reported by:||chip.cullen@…||Owned by:|
This is a weird behavior, and an admittedly limited use case, but:
If you try to change an element's font-family css attribute using jQuery, and the font-family you are specifying ends in something other than a letter, it doesn't work.
For instance, this works:
This, however, will not:
$('h1').css('font-family','Goudy Bookletter 1911');
jQuery just won't perform the function. The selected element retains whatever font-family has been assigned by other means.
I've tested it with the console, and can verify this is the case in both 1.4.2 and 1.5.